From 3cd3037e18c7229ccb89c263c191a73ffd7fb33b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Oct 2006 20:26:39 +0000 Subject: [PATCH] pass correct indicator pointer to SQLBindCol() (patch 1390059) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dbtable.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 5463713419..1a97227993 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -560,21 +560,17 @@ bool wxDbTable::bindUpdateParams(void) /********** wxDbTable::bindCols() **********/ bool wxDbTable::bindCols(HSTMT cursor) { - static SQLLEN cb; - // Bind each column of the table to a memory address for fetching data UWORD i; for (i = 0; i < m_numCols; i++) { - cb = colDefs[i].CbValue; if (SQLBindCol(cursor, (UWORD)(i+1), colDefs[i].SqlCtype, (UCHAR*) colDefs[i].PtrDataObj, - colDefs[i].SzDataObj, &cb ) != SQL_SUCCESS) + colDefs[i].SzDataObj, &colDefs[i].CbValue ) != SQL_SUCCESS) return (pDb->DispAllErrors(henv, hdbc, cursor)); } // Completed successfully return true; - } // wxDbTable::bindCols() -- 2.45.2