From dadb718b103d6675399547d3f6c12d0726f9537e Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Mon, 11 Mar 2002 10:25:57 +0000 Subject: Bug fixes for the 2002-03-08 change. 1) Put back the error message for SQLError(). 2) Change Disallow premature to handle the SELECTed result. 3) Put back the behavior of AUTUCOMMIT mode change. 4) Fix SQLColumns for ODBC3.0. 5) Improve the handling of variable bookmark in ODBC3.0. 6) Enable Recognize Unique Index Button. --- src/interfaces/odbc/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/odbc/options.c') diff --git a/src/interfaces/odbc/options.c b/src/interfaces/odbc/options.c index d58f84916fc..c8e07700c83 100644 --- a/src/interfaces/odbc/options.c +++ b/src/interfaces/odbc/options.c @@ -342,9 +342,9 @@ PGAPI_SetConnectOption( break; case SQL_AUTOCOMMIT: - if (vParam == SQL_AUTOCOMMIT_ON && CC_is_in_trans(conn)) + if (vParam == SQL_AUTOCOMMIT_ON && CC_is_in_autocommit(conn)) break; - else if (vParam == SQL_AUTOCOMMIT_OFF && !CC_is_in_trans(conn)) + else if (vParam == SQL_AUTOCOMMIT_OFF && !CC_is_in_autocommit(conn)) break; if (CC_is_in_trans(conn)) CC_commit(conn); -- cgit v1.2.3