]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dbtable.cpp
fixed bug with lower-case colours in wxColourDatabase::AddColour() (patch 1074865)
[wxWidgets.git] / src / common / dbtable.cpp
index 3e3349915935a9a01bbc9c11e866c314818a3ee7..50c832a5f2303b2cb3a863d87d26d70d3a936581 100644 (file)
@@ -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;