]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
fixes to the sizers behaviour necessary to make the log dialog work again
[wxWidgets.git] / src / common / db.cpp
index 86dd614ad9c3bca6f9127becf48799e37df2595c..15160d59514e31454a27b222fbc636ce1c8a69f4 100644 (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;