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
This commit is contained in:
@@ -276,11 +276,14 @@ wxString wxDbGridTableBase::GetTypeName(int WXUNUSED(row), int col)
|
|||||||
switch(m_data->GetColDefs()[(m_ColInfo[col].DbCol)].SqlCtype)
|
switch(m_data->GetColDefs()[(m_ColInfo[col].DbCol)].SqlCtype)
|
||||||
{
|
{
|
||||||
case SQL_C_CHAR:
|
case SQL_C_CHAR:
|
||||||
|
case SQL_C_WCHAR:
|
||||||
return wxGRID_VALUE_STRING;
|
return wxGRID_VALUE_STRING;
|
||||||
|
case SQL_C_SHORT:
|
||||||
case SQL_C_SSHORT:
|
case SQL_C_SSHORT:
|
||||||
return wxGRID_VALUE_NUMBER;
|
return wxGRID_VALUE_NUMBER;
|
||||||
case SQL_C_USHORT:
|
case SQL_C_USHORT:
|
||||||
return wxGRID_VALUE_NUMBER;
|
return wxGRID_VALUE_NUMBER;
|
||||||
|
case SQL_C_LONG:
|
||||||
case SQL_C_SLONG:
|
case SQL_C_SLONG:
|
||||||
return wxGRID_VALUE_NUMBER;
|
return wxGRID_VALUE_NUMBER;
|
||||||
case SQL_C_ULONG:
|
case SQL_C_ULONG:
|
||||||
|
Reference in New Issue
Block a user