Re: MySQL Connector/ODBC 3.51.14 is available!

Jim Winstead <[email protected]>
Newsgroups gmane.comp.db.mysql.odbc
Message-ID <[email protected]>
On Wed, Mar 14, 2007 at 11:24:50AM +0000, [email 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/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.