Check return of QSqlQuery::prepare

This commit is contained in:
Jonas Kvinge
2023-07-21 07:12:20 +02:00
parent eaed82c9b2
commit 75ab6f25f4
2 changed files with 5 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ bool CollectionQuery::Exec() {
sql.replace("%fts_table_noprefix", fts_table_.section('.', -1, -1));
sql.replace("%fts_table", fts_table_);
QSqlQuery::prepare(sql);
if (!QSqlQuery::prepare(sql)) return false;
// Bind values
for (const QVariant &value : bound_values_) {