#include "wx/version.h"
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "db.h"
#endif
#include "sql.h"
#include "sqlext.h"
#include "odbcinst.h"
+#elif defined( __VMS )
+// For OpenVMS use the ones from the library
+extern "C" {
+ #include <isql.h>
+ #include <isqlext.h>
+}
#else
extern "C" {
#include "wx/isql.h"
dbmsVIRTUOSO,
dbmsDB2,
dbmsINTERBASE,
- dbmsPERVASIVE_SQL
+ dbmsPERVASIVE_SQL,
+ dbmsXBASE_SEQUITER
};
wxDb(const HENV &aHenv, bool FwdOnlyCursors=(bool)wxODBC_FWD_ONLY_CURSORS);
~wxDb();
- bool Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthStr); // Data Source Name, User ID, Password
+ // Data Source Name, User ID, Password and whether open should fail on data type not supported
+ bool Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthStr, bool failOnDataTypeUnsupported=TRUE);
bool Open(wxDbConnectInf *dbConnectInf);
bool Open(wxDb *copyDb); // pointer to a wxDb whose connection info should be copied rather than re-queried
void Close(void);