Skip to content

Commit

Permalink
tests bugfix Q_ASSERT() in Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 4, 2023
1 parent 1e75726 commit dc7c41e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,9 @@ QVariant tst_SchemaBuilder::getTableComment_Postgres(const QString &table,
"select obj_description('%1.%2'::regclass) as table_comment")
.arg(schema, table));

Q_ASSERT(query.first());
[[maybe_unused]]
const auto ok = query.first();
Q_ASSERT(ok);
Q_ASSERT(query.isValid());

return query.value(QStringLiteral("table_comment"));
Expand Down

0 comments on commit dc7c41e

Please sign in to comment.