Loading backends/sqlite/sqlite.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <iostream> #include <atomic> #include <stdexcept> #include <sqlite3.h> Loading @@ -42,7 +43,7 @@ dbpp::SQLite::SQLite(const char *constr){ int status=sqlite3_open(constr,&_dbconn); if (status != SQLITE_OK ){ sqlite3_close(_dbconn); throw sqlite3_errmsg(_dbconn); throw std::runtime_error(sqlite3_errmsg(_dbconn)); } sqllock.store(false); Loading Loading @@ -87,7 +88,7 @@ int dbpp::SQLite::exec(const SQL &sql,DBResult &res){ if(pcode==SQLITE_ERROR){ delete[] ssql; sqllock.store(false); throw sqlite3_errmsg(_dbconn); throw std::runtime_error(sqlite3_errmsg(_dbconn)); } if(pcode==SQLITE_ROW){ Loading Loading
backends/sqlite/sqlite.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <iostream> #include <atomic> #include <stdexcept> #include <sqlite3.h> Loading @@ -42,7 +43,7 @@ dbpp::SQLite::SQLite(const char *constr){ int status=sqlite3_open(constr,&_dbconn); if (status != SQLITE_OK ){ sqlite3_close(_dbconn); throw sqlite3_errmsg(_dbconn); throw std::runtime_error(sqlite3_errmsg(_dbconn)); } sqllock.store(false); Loading Loading @@ -87,7 +88,7 @@ int dbpp::SQLite::exec(const SQL &sql,DBResult &res){ if(pcode==SQLITE_ERROR){ delete[] ssql; sqllock.store(false); throw sqlite3_errmsg(_dbconn); throw std::runtime_error(sqlite3_errmsg(_dbconn)); } if(pcode==SQLITE_ROW){ Loading