X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4e45573151c64a0a9d423eca7b29879640b9d77..27758ba7d4465a9edac4cf3f9ee0fa6c57f304f4:/src/common/dbtable.cpp?ds=sidebyside diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 3e33499159..50c832a5f2 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -1291,7 +1291,9 @@ void wxDbTable::BuildWhereClause(wxString &pWhereClause, int typeOfWhere, switch(colDefs[colNo].SqlCtype) { case SQL_C_CHAR: +#ifndef __UNIX__ 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[colNo].PtrDataObj); break; @@ -2177,7 +2179,9 @@ void wxDbTable::ClearMemberVar(UWORD colNo, bool setToNull) switch(colDefs[colNo].SqlCtype) { case SQL_C_CHAR: +#ifndef __UNIX__ case SQL_C_WCHAR: +#endif //case SQL_C_WXCHAR: SQL_C_WXCHAR is covered by either SQL_C_CHAR or SQL_C_WCHAR ((UCHAR FAR *) colDefs[colNo].PtrDataObj)[0] = 0; break;