Fixed problem in wxDbColFor::Format() for mySQL (patch submittted directly to me from Mark Johnson) to handle SQL_C_TIMESTAMP fields, which is what mySQL uses for DATE fields.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2001-01-14 12:46:33 +00:00
parent 302a1ecae3
commit ebf776c5b8

View File

@@ -257,7 +257,7 @@ int wxDbColFor::Format(int Nation,int dbDataType,SWORD sqlDataType,short columnS
{
if ((i_sqlDataType == SQL_VARCHAR) || (i_sqlDataType == SQL_LONGVARCHAR))
i_dbDataType = DB_DATA_TYPE_VARCHAR;
if (i_sqlDataType == SQL_C_DATE)
if ((i_sqlDataType == SQL_C_DATE) || (i_sqlDataType == SQL_C_TIMESTAMP))
i_dbDataType = DB_DATA_TYPE_DATE;
if (i_sqlDataType == SQL_C_BIT)
i_dbDataType = DB_DATA_TYPE_INTEGER;