Commit da6114a4 authored by jan.koester's avatar jan.koester
Browse files

test

parent 039c18ce
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@

#include <iostream>
#include <atomic>
#include <stdexcept>

#include <sqlite3.h>

@@ -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);

@@ -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){