List:Commits« Previous MessageNext Message »
From:jwinstead Date:December 7 2007 4:39am
Subject:Connector/ODBC 3.51 commit: r931 - in branches/guffert: . driver
View as plain text  
Modified:
   branches/guffert/ChangeLog
   branches/guffert/driver/options.c
Log:
SQLSetConnectAttr() did not clear previous errors, possibly confusing
SQLError().


Modified: branches/guffert/ChangeLog
===================================================================
--- branches/guffert/ChangeLog	2007-12-06 16:12:26 UTC (rev 930)
+++ branches/guffert/ChangeLog	2007-12-07 04:39:49 UTC (rev 931)
@@ -31,6 +31,8 @@
   * SQLError() incorrectly cleared the error information, making it
     unavailable from subsequent calls to SQLGetDiagRec().
   * ADO was unable to open record set using dynamic cursor. (Bug #32014)
+  * SQLSetConnectAttr() did not clear previous errors, possibly confusing
+    SQLError().
   
   Includes changes from Connector/ODBC 3.51.21 and 3.51.22.
 

Modified: branches/guffert/driver/options.c
===================================================================
--- branches/guffert/driver/options.c	2007-12-06 16:12:26 UTC (rev 930)
+++ branches/guffert/driver/options.c	2007-12-07 04:39:49 UTC (rev 931)
@@ -504,6 +504,8 @@
     SQLRETURN result= SQL_SUCCESS;
     STMT_OPTIONS *options= &stmt->stmt_options;
 
+    CLEAR_STMT_ERROR(stmt);
+
     switch (Attribute)
     {
         case SQL_ATTR_CURSOR_SCROLLABLE:

Thread
Connector/ODBC 3.51 commit: r931 - in branches/guffert: . driverjwinstead7 Dec