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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user