]> git.saurik.com Git - wxWidgets.git/commitdiff
BLOB fix - if the type for the BLOB column is SQL_C_CHAR, CbValue is now set to SQL_N...
authorGeorge Tasker <gtasker@allenbrook.com>
Thu, 13 May 2004 02:04:51 +0000 (02:04 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Thu, 13 May 2004 02:04:51 +0000 (02:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dbtable.cpp

index 03cedf85f3200501661b5c330f1b01206af6e9e8..5db3049439001d54cc8473ef61efa1867325b18e 100644 (file)
@@ -443,7 +443,7 @@ void wxDbTable::setCbValueForColumn(int columnIndex)
                 colDefs[columnIndex].CbValue = SQL_NULL_DATA;
             else
                 if (colDefs[columnIndex].SqlCtype == SQL_C_CHAR)
-                    colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(0);
+                    colDefs[columnIndex].CbValue = SQL_NTS;
                 else
                     colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(colDefs[columnIndex].SzDataObj);
             break;