Fix compilo on Unix using src/iodbc which has no SQL_C_WCHAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ff3d9a3532
commit
5c2cd0f67a
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user