From: George Tasker Date: Sun, 14 Jan 2001 12:46:33 +0000 (+0000) Subject: Fixed problem in wxDbColFor::Format() for mySQL (patch submittted directly to me... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ebf776c5b83060ff638bc5652dbf26784cfab320?ds=sidebyside 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 --- diff --git a/src/common/db.cpp b/src/common/db.cpp index 963f6e3497..71f0176226 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -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;