[unixODBC-support] some fixes for descriptors

Jess Balint jbalint at gmail.com
Sat Dec 15 01:06:35 GMT 2007


there are some Bugs, i've created a diff against the latest cvs tree
(see below).

Hope this helps.
Jess


Index: DriverManager/SQLAllocHandle.c
===================================================================
RCS file: /cvsroot/unixodbc/unixODBC/DriverManager/SQLAllocHandle.c,v
retrieving revision 1.11
diff -u -r1.11 SQLAllocHandle.c
--- DriverManager/SQLAllocHandle.c      12 Feb 2007 11:49:34 -0000      1.11
+++ DriverManager/SQLAllocHandle.c      15 Dec 2007 00:59:29 -0000
@@ -758,7 +758,7 @@
                          * to wrap around this
                          */
                         statement -> apd = __alloc_desc();
-                        if ( !statement -> ard )
+                        if ( !statement -> apd )
                         {
                             dm_log_write( __FILE__,
                                 __LINE__,
@@ -931,7 +931,7 @@
                          * to wrap around this
                          */
                         statement -> apd = __alloc_desc();
-                        if ( !statement -> ard )
+                        if ( !statement -> apd )
                         {
                             dm_log_write( __FILE__,
                                 __LINE__,
Index: DriverManager/SQLSetStmtAttr.c
===================================================================
RCS file: /cvsroot/unixodbc/unixODBC/DriverManager/SQLSetStmtAttr.c,v
retrieving revision 1.13
diff -u -r1.13 SQLSetStmtAttr.c
--- DriverManager/SQLSetStmtAttr.c      12 Feb 2007 11:49:34 -0000      1.13
+++ DriverManager/SQLSetStmtAttr.c      15 Dec 2007 00:59:30 -0000
@@ -400,7 +400,7 @@

                        if ( desc == statement -> implicit_ard )
                        {
-                               drv_desc = statement -> implicit_apd -> driver_desc;
+                               drv_desc = statement -> implicit_ard -> driver_desc;
                        }

                if ( CHECK_SQLSETSTMTATTR( statement -> connection ))




More information about the unixODBC-support mailing list