Skip to content
Snippets Groups Projects
Verified Commit 4ac35997 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: SCHWED-6050 check status correctly to avoid assertion error

parent b1a4909e
No related branches found
No related tags found
No related merge requests found
...@@ -632,7 +632,7 @@ CompoundPtrList CompoundLib::FindCompounds(const String& query, ...@@ -632,7 +632,7 @@ CompoundPtrList CompoundLib::FindCompounds(const String& query,
// next row // next row
ret=sqlite3_step(stmt); ret=sqlite3_step(stmt);
} }
assert(SQLITE_DONE==sqlite3_step(stmt)); assert(SQLITE_DONE==ret);
} else { } else {
LOG_ERROR("ERROR: " << sqlite3_errmsg(db_->ptr)); LOG_ERROR("ERROR: " << sqlite3_errmsg(db_->ptr));
sqlite3_finalize(stmt); sqlite3_finalize(stmt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment