]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dbtable.cpp
don't assume there's always an active wxEventLoop instance
[wxWidgets.git] / src / common / dbtable.cpp
index dd882392480a0601002c2a198d171d75b63285f2..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'"), GetDb()->EscapeSqlChars((UCHAR FAR *)colDefs[colNumber].PtrDataObj).c_str());
+                    colValue.Printf(wxT("'%s'"), GetDb()->EscapeSqlChars((wxChar *)colDefs[colNumber].PtrDataObj).c_str());
                     break;
                 case SQL_C_SHORT:
                 case SQL_C_SSHORT: