From dedae23fe7b08c4d34f6dd18c8f2ba4f07c6ead6 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Wed, 2 Aug 2000 10:55:00 +0000 Subject: [PATCH] Header changes for 2.4 added, but all are inside of #if...#endif blocks so that at compile time there is no changes to header from 2.2.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/db.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/wx/db.h b/include/wx/db.h index c0763f6fd5..503ce70694 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -42,7 +42,7 @@ // BJO 20000503: introduce new GetColumns members which are more database independant and // return columns in the order they were created #define OLD_GETCOLUMNS 1 - +#define EXPERIMENTAL_WXDB_FUNCTIONS 0 // Use this line for wxWindows v1.x //#include "wx_ver.h" @@ -432,6 +432,9 @@ public: char databaseName[128]; // Database filename char outerJoins[2]; // Indicates whether the data source supports outer joins char procedureSupport[2]; // Indicates whether the data source supports stored procedures +#if EXPERIMENTAL_WXDB_FUNCTIONS // will be added in 2.4 + char accessibleTables[2]; // Indicates whether the data source only reports accessible tables in SQLTables. +#endif UWORD maxConnections; // Maximum # of connections the data source supports UWORD maxStmts; // Maximum # of HSTMTs per HDBC UWORD apiConfLvl; // ODBC API conformance level @@ -514,6 +517,9 @@ public: wxDbSqlTypeInfo GetTypeInfDate() {return typeInfDate;} bool TableExists(const char *tableName, const char *userID=NULL, const char *path=NULL); // Table name can refer to a table, view, alias or synonym +#if EXPERIMENTAL_WXDB_FUNCTIONS // will be added in 2.4 + bool TablePrivileges(const char *tableName, const char* priv, const char *userID=NULL, const char *path=NULL); // Table name can refer to a table, view, alias or synonym +#endif void LogError(const char *errMsg, const char *SQLState = 0) {logError(errMsg, SQLState);} void SetDebugErrorMessages(bool state) { silent = !state; } bool SetSqlLogging(wxDbSqlLogState state, const wxChar *filename = SQL_LOG_FILENAME, bool append = FALSE);