]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/odbc.cpp
moved wxID_SEPARATOR from menuitem.h to defs.h
[wxWidgets.git] / src / common / odbc.cpp
index f82a986409db28e6e0a71ec989f71785260444b3..103fdda8afd42ec29b96d1b119d28743d9213115 100644 (file)
 
 #include "wx/defs.h"
 
-#if wxUSE_ODBC
+// this code is old and shouldn't be used - use the new ODBC classes in db.cpp
+// and dbtable.cpp instead
+#define wxUSE_OLD_ODBC 0
+
+#if wxUSE_OLD_ODBC
 
 #ifdef __VISUALC__
     #pragma warning(disable:4706)   // assignment within conditional expression
@@ -443,7 +447,7 @@ float wxDatabase::GetODBCVersionFloat(bool implementation)
   if (retcode == SQL_ERROR)
     return 0.0;
   else
-    return atof(buf);
+    return (float)atof(buf);
 }
 
 /*
@@ -1835,4 +1839,4 @@ bool wxQueryField::IsDirty(void) {
     #pragma warning(default:4706)   // assignment within conditional expression
 #endif // VC++
 
-#endif // wxUSE_ODBC
+#endif // wxUSE_OLD_ODBC