Have executeSQL take a String.

This commit is contained in:
Arthur Britto
2012-04-17 19:41:12 -07:00
parent 34e5b77223
commit e7307dca6d

View File

@@ -35,6 +35,10 @@ public:
// returns true if the query went ok
virtual bool executeSQL(const char* sql, bool fail_okay=false)=0;
bool executeSQL(std::string strSql, bool fail_okay=false) {
return executeSQL(strSql.c_str(), fail_okay);
}
// tells you how many rows were changed by an update or insert
virtual int getNumRowsAffected()=0;
virtual int getLastInsertID()=0;