X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4af841d3be3ddef6229146b9d01d4fa400d1684..e34732036315991c0ab6ab9035fa844c5080ee19:/include/wx/db.h?ds=sidebyside diff --git a/include/wx/db.h b/include/wx/db.h index 31bc02b3b0..adfbd49b11 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -627,6 +627,14 @@ public: const wxChar *userID=NULL, const wxChar *schema=NULL, const wxString &path=wxEmptyString); + // These two functions return the table name or column name in a form ready + // for use in SQL statements. For example, if the datasource allows spaces + // in the table name or column name, the returned string will have the + // correct enclosing marks around the name to allow it to be properly + // included in a SQL statement + const wxString SQLTableName(const char *tableName); + const wxString SQLColumnName(const char *colName); + void LogError(const wxString &errMsg, const wxString &SQLState = wxEmptyString) { logError(errMsg, SQLState); } void SetDebugErrorMessages(bool state) { silent = !state; }