Bug #32727 | Unable to abort distributed transactions enlisted in MSDTC | ||
---|---|---|---|
Submitted: | 26 Nov 2007 16:04 | Modified: | 3 Dec 2007 7:27 |
Reporter: | John Water | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 5.01.00.00 and 3.51.21.00 | OS: | Windows (XP) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
Tags: | Abort, Distributed Transactions, ODBC |
[26 Nov 2007 16:04]
John Water
[26 Nov 2007 16:09]
Jess Balint
John, None of the MySQL Connector/ODBC drivers support distributed transactions via MS DTC.
[26 Nov 2007 16:25]
John Water
If the driver doesn't support MSDTC, it should give an error when the following function is called by the app: ret = SQLSetConnectAttr( conn->dbc, SQL_ATTR_ENLIST_IN_DTC, (SQLPOINTER)pTransaction, SQL_IS_UINTEGER ); However the driver currently returns SQL_SUCCESS.
[26 Nov 2007 16:33]
Jess Balint
We will fix it to return the proper error. Thanks.
[26 Nov 2007 18:08]
Jim Winstead
Make setting of SQL_ATTR_ENLIST_IN_DTC be reported as an error
Attachment: bug32727.diff (text/plain), 1.49 KiB.
[26 Nov 2007 20:06]
Jim Winstead
The fix for this has been committed, and will be in the next release (3.51.23). Thanks for the bug report.
[3 Dec 2007 7:27]
MC Brown
A note has been added to the 3.51.23 changelog: Connector/ODBC would incorrectly return SQL_SUCCESS when checking for distributed transaction support.
[19 Jun 2008 20:25]
Marcela Leite
Please, is there a solution for this Problem?
[19 Jun 2008 20:49]
Jess Balint
Marcela, Connector/ODBC does not support enlistment in DTC transactions and we currently have no plans to support it.