X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cd3037e18c7229ccb89c263c191a73ffd7fb33b..72366f68d1036084d1adc5971eeee4885f36fe5c:/src/common/dbtable.cpp diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 1a97227993..4d8f113e6c 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -1308,7 +1308,7 @@ void wxDbTable::BuildWhereClause(wxString &pWhereClause, int typeOfWhere, case SQL_C_WCHAR: #endif //case SQL_C_WXCHAR: SQL_C_WXCHAR is covered by either SQL_C_CHAR or SQL_C_WCHAR - colValue.Printf(wxT("'%s'"), (UCHAR FAR *) colDefs[colNumber].PtrDataObj); + colValue.Printf(wxT("'%s'"), GetDb()->EscapeSqlChars((wxChar *)colDefs[colNumber].PtrDataObj).c_str()); break; case SQL_C_SHORT: case SQL_C_SSHORT: