diff --git a/src/common/dbgrid.cpp b/src/common/dbgrid.cpp index bdb5aa196a..ed58753424 100644 --- a/src/common/dbgrid.cpp +++ b/src/common/dbgrid.cpp @@ -276,7 +276,9 @@ wxString wxDbGridTableBase::GetTypeName(int WXUNUSED(row), int col) switch(m_data->GetColDefs()[(m_ColInfo[col].DbCol)].SqlCtype) { case SQL_C_CHAR: +#ifndef __UNIX__ case SQL_C_WCHAR: +#endif return wxGRID_VALUE_STRING; case SQL_C_SHORT: case SQL_C_SSHORT: 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;