]> git.saurik.com Git - wxWidgets.git/commitdiff
Added support for SQL_C_UCHAR (unicode builds), SQL_C_LONG, and SQL_C_SHORT. These...
authorGeorge Tasker <gtasker@allenbrook.com>
Wed, 10 Nov 2004 10:29:37 +0000 (10:29 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Wed, 10 Nov 2004 10:29:37 +0000 (10:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dbgrid.cpp

index c413ed46919d49ec1dc85b1545e5bacbe822feab..bdb5aa196a9486cfc4a4fcdeb724b54df5635d4d 100644 (file)
@@ -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: