MySQL Connector/ODBC 3.51.14 is available! 2007-03-16 - By Jim Winstead
Back On Wed, Mar 14, 2007 at 11:24:50AM +0000, f.n.cristovao@(protected) wrote: > In the DSN configuration dialog, Advanced page, we can see the > option to enable auto reconnet and its tooltip mentions "it is strongly > not recommended to set this flag for transactional operations!". > > Can you shed some light on this subject? > Are there any articles describing case scenarios for transction disaster?
I'm not aware of any examples, but it is fairly simple -- if you have 'auto-reconnect' enabled, and are using transactions, and your connection does an auto-reconnect in the middle of a transaction, you will be operating in a state where part of your transaction has actually been rolled back, and you will be doing part of your work in either a new transaction, or with autocommit suddenly enabled.
So don't use it, and add proper error handling to your application to deal with being unexpectedly disconnected.
Jim Winstead MySQL Inc.
-- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/myodbc?unsub=mysql@(protected)
|
|