Changeset: 56ed236f2272 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/56ed236f2272
Modified Files:
        clients/odbc/driver/SQLSetConnectAttr.c
Branch: Aug2024
Log Message:

missed one more declaration in case statement list.


diffs (18 lines):

diff --git a/clients/odbc/driver/SQLSetConnectAttr.c 
b/clients/odbc/driver/SQLSetConnectAttr.c
--- a/clients/odbc/driver/SQLSetConnectAttr.c
+++ b/clients/odbc/driver/SQLSetConnectAttr.c
@@ -42,12 +42,13 @@ MNDBSetConnectAttr(ODBCDbc *dbc,
 {
        (void) StringLength;    /* Stefan: unused!? */
 
+       bool autocommit = false;
        switch (Attribute) {
        case SQL_ATTR_AUTOCOMMIT:               /* SQLUINTEGER */
                switch ((SQLUINTEGER) (uintptr_t) ValuePtr) {
                case SQL_AUTOCOMMIT_ON:
                case SQL_AUTOCOMMIT_OFF:
-                       bool autocommit = (bool) (SQLUINTEGER) (uintptr_t) 
ValuePtr;
+                       autocommit = (bool) (SQLUINTEGER) (uintptr_t) ValuePtr;
 #ifdef ODBCDEBUG
                        ODBCLOG("SQLSetConnectAttr set autocommit %s\n", 
autocommit ? "on" : "off");
 #endif
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to