From: George Tasker Date: Wed, 10 Nov 2004 10:29:37 +0000 (+0000) Subject: Added support for SQL_C_UCHAR (unicode builds), SQL_C_LONG, and SQL_C_SHORT. These... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a349c39a0d074d586add9c0d61f0ecb11d6acf6?ds=inline Added support for SQL_C_UCHAR (unicode builds), SQL_C_LONG, and SQL_C_SHORT. These are the column types supported by the wxODBC classes that were not being handled by the wxDbGrid code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dbgrid.cpp b/src/common/dbgrid.cpp index c413ed4691..bdb5aa196a 100644 --- a/src/common/dbgrid.cpp +++ b/src/common/dbgrid.cpp @@ -276,11 +276,14 @@ wxString wxDbGridTableBase::GetTypeName(int WXUNUSED(row), int col) switch(m_data->GetColDefs()[(m_ColInfo[col].DbCol)].SqlCtype) { case SQL_C_CHAR: + case SQL_C_WCHAR: return wxGRID_VALUE_STRING; + case SQL_C_SHORT: case SQL_C_SSHORT: return wxGRID_VALUE_NUMBER; case SQL_C_USHORT: return wxGRID_VALUE_NUMBER; + case SQL_C_LONG: case SQL_C_SLONG: return wxGRID_VALUE_NUMBER; case SQL_C_ULONG: