Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
MySQL Connector/ODBC 3.51.14 is available!

MySQL Connector/ODBC 3.51.14 is available!

2007-03-16       - By Jim Winstead

 Back
Reply:     1     2     3     4     5  

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)