BLOB fix - if the type for the BLOB column is SQL_C_CHAR, CbValue is now set to SQL_NTS to indicate that the data is null terminated. It is strongly recommended to use SQL_C_BINARY for the BLOB type, not SQL_C_CHAR

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2004-05-13 02:04:51 +00:00
parent c9b6d7964d
commit fd9b9198f8

View 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;