Index: ChangeLog =================================================================== --- ChangeLog (revision 859) +++ ChangeLog (working copy) @@ -3,6 +3,8 @@ Functionality added or changed: Bugs fixed: + * Allowed connections to be enlisted in distributed transactions, even + though the driver doesn't support them. (Bug #32727) ---- Index: driver/options.c =================================================================== --- driver/options.c (revision 856) +++ driver/options.c (working copy) @@ -397,6 +397,10 @@ } break; + case SQL_ATTR_ENLIST_IN_DTC: + return set_dbc_error(dbc, "HYC00", + "Optional feature not supported", 0); + /* 3.x driver doesn't support any statement attributes at connection level, but to make sure all 2.x apps Index: test/my_basics.c =================================================================== --- test/my_basics.c (revision 856) +++ test/my_basics.c (working copy) @@ -486,6 +486,17 @@ } +/** + Bug #32727: Unable to abort distributed transactions enlisted in MSDTC +*/ +DECLARE_TEST(t_bug32727) +{ + is(SQLSetConnectAttr(hdbc, SQL_ATTR_ENLIST_IN_DTC, + (SQLPOINTER)1, SQL_IS_UINTEGER) == SQL_ERROR); + return OK; +} + + BEGIN_TESTS ADD_TEST(my_basics) ADD_TEST(t_max_select) @@ -500,6 +511,7 @@ ADD_TEST(t_bug7445) ADD_TEST(t_bug30774) ADD_TEST(t_bug30840) + ADD_TEST(t_bug32727) END_TESTS