Commit 401b20b7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

SqliteConnection: Remove useless call to sqlite_busy_timeout

parent e076ad05
...@@ -50,9 +50,6 @@ SqliteConnection::Handle SqliteConnection::getConn() ...@@ -50,9 +50,6 @@ SqliteConnection::Handle SqliteConnection::getConn()
auto res = sqlite3_open( m_dbPath.c_str(), &dbConnection ); auto res = sqlite3_open( m_dbPath.c_str(), &dbConnection );
if ( res != SQLITE_OK ) if ( res != SQLITE_OK )
throw std::runtime_error( "Failed to connect to database" ); throw std::runtime_error( "Failed to connect to database" );
res = sqlite3_busy_timeout( dbConnection, 500 );
if ( res != SQLITE_OK )
LOG_WARN( "Failed to enable sqlite busy timeout" );
sqlite::Statement s( dbConnection, "PRAGMA foreign_keys = ON" ); sqlite::Statement s( dbConnection, "PRAGMA foreign_keys = ON" );
s.execute(); s.execute();
while ( s.row() != nullptr ) while ( s.row() != nullptr )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment