]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dbtable.cpp
removing additional offset - why did this ever work ?
[wxWidgets.git] / src / common / dbtable.cpp
index 1a97227993b296f9789a9e2f7d1e8fa7aa82bc06..4d8f113e6c10f560d8ec981503aeb7c128591b69 100644 (file)
@@ -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: