fixed compilation under Unix where SQL_DATETIME is not defined

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-03-25 15:11:24 +00:00
parent 092f753690
commit a327b52090

View File

@ -722,13 +722,17 @@ bool wxDb::Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthSt
{
if (!getDataTypeInfo(SQL_DATE,typeInfDate))
{
if (!getDataTypeInfo(SQL_DATETIME,typeInfDate))
#ifdef SQL_DATETIME
if (getDataTypeInfo(SQL_DATETIME,typeInfDate))
{
typeInfDate.FsqlType = SQL_TIME;
}
else
#endif // SQL_DATETIME defined
{
if (failOnDataTypeUnsupported)
return(FALSE);
}
else
typeInfDate.FsqlType = SQL_TIME;
}
else
typeInfDate.FsqlType = SQL_DATE;