File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1010#include < sstream>
1111#include < iostream>
1212#include < unistd.h>
13+ #include < memory>
1314
1415using namespace std ;
1516
@@ -1053,13 +1054,23 @@ void CppSQLite3DB::close()
10531054 }
10541055}
10551056
1057+ /*
10561058CppSQLite3Statement CppSQLite3DB::compileStatement(const string &szSQL) const
10571059{
10581060 checkDB();
10591061
10601062 sqlite3_stmt *pVM = compile(szSQL);
10611063 return CppSQLite3Statement(mpDB, pVM);
10621064}
1065+ */
1066+
1067+ std::shared_ptr<CppSQLite3Statement> CppSQLite3DB::compileStatement (const string &szSQL) const
1068+ {
1069+ checkDB ();
1070+
1071+ sqlite3_stmt *pVM = compile (szSQL);
1072+ return std::make_shared<CppSQLite3Statement>(mpDB, pVM);
1073+ }
10631074
10641075bool CppSQLite3DB::tableExists (const string &szTable) const
10651076{
You can’t perform that action at this time.
0 commit comments