Commit 8f403db4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

sqlite: Tools: Don't assert on a non-null row

This simplifies debugging since the missing trigger will be displayed,
instead of an unclear assertion failure
parent 1394fe1c
......@@ -485,7 +485,8 @@ class Tools
Statement stmt( dbConn->handle(), req );
stmt.execute( type, name );
auto row = stmt.row();
assert( row != nullptr );
if ( row == nullptr )
return "";
assert( row.nbColumns() == 1 );
auto res = row.extract<std::string>();
auto duration = std::chrono::steady_clock::now() - chrono;
Markdown is supported
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