[svn-commits] r177 - drivers/python/main/dbi

clach04 at ingres.com clach04 at ingres.com
Fri Aug 1 09:51:58 PDT 2008


Author: clach04
Date: 2008-08-01 09:51:58 -0700 (Fri, 01 Aug 2008)
New Revision: 177

Modified:
   drivers/python/main/dbi/iidbicurs.c
Log:
Trac Ticket #243 - errors on bind ignored

dbi_cursorExecute() failed to check (and report) errors on calls to BindParameters(). Added simple check.

Modified: drivers/python/main/dbi/iidbicurs.c
===================================================================
--- drivers/python/main/dbi/iidbicurs.c	2008-08-01 16:00:09 UTC (rev 176)
+++ drivers/python/main/dbi/iidbicurs.c	2008-08-01 16:51:58 UTC (rev 177)
@@ -124,6 +124,10 @@
 **        DBI trace messages.
 **   20-may-2006 (Ralph.Loen at ingres.com)
 **        Added cursor.setinputsizes() and cursor.setoutputsize().
+**      30-Jul-2008 (clach04)
+**          Trac Ticket #243 - errors on bind ignored
+**          dbi_cursorExecute() failed to check (and report) errors on calls
+**          to BindParameters(). Added simple check.
 **/
 
 RETCODE BindParameters(IIDBI_STMT *pstmt, unsigned char isProc);
@@ -277,6 +281,8 @@
 **      22-Jul-2004 (raymond.fan at ca.com)
 **          For blobs where the last segment does not fall on a segment
 **          boundary include an increment of the data pointer.
+**      30-Jul-2008 (clach04)
+**          dbi_cursorExecute() now checks for failed calls to BindParameters()
 }*/
 
 RETCODE
@@ -415,6 +421,8 @@
         }
         if (pstmt->parmCount)
             return_code = BindParameters(pstmt, isProc);
+        if (return_code != DBI_SQL_SUCCESS)
+            break;
 
         DBPRINTF(DBI_TRC_STAT)("Executing the query %s\n",stmnt);
 




More information about the svn-commits mailing list