X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bdb08e7ef02ec704542326d899d357136acdaa5..706f14210b7d782742b4fdbaea0adc25bdcced4d:/include/wx/db.h diff --git a/include/wx/db.h b/include/wx/db.h index 225563e3f6..58843cf23e 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -77,7 +77,7 @@ #include "sqlext.h" #include "odbcinst.h" #else - #if defined(__WINDOWS__) && defined(HAVE_W32API_H) + #if defined(__WINDOWS__) && ( defined(HAVE_W32API_H) || defined(__BORLANDC__) ) #include #include "wx/msw/winundef.h" #endif @@ -99,6 +99,11 @@ typedef double SDOUBLE; typedef unsigned int UINT; #define ULONG UDWORD +// Not available in iODBC +#ifndef __WXMSW__ +typedef UCHAR SQLTCHAR; +#endif + #ifndef wxODBC_FWD_ONLY_CURSORS #define wxODBC_FWD_ONLY_CURSORS 1 #endif @@ -486,7 +491,7 @@ private: wxDBMS dbmsType; // Type of datasource - i.e. Oracle, dBase, SQLServer, etc // Private member functions - bool getDbInfo(void); + bool getDbInfo(bool failOnDataTypeUnsupported = TRUE); bool getDataTypeInfo(SWORD fSqlType, wxDbSqlTypeInfo &structSQLTypeInfo); bool setConnectionOptions(void); void logError(const wxString &errMsg, const wxString &SQLState);