SQL/SQLite: Silence warning "Unsupported option ''"

It shows for example when starting assistant.
Amends 3379fd2322.

Pick-to: 6.7
Change-Id: I85196c62ff9d9caaa46a5279c3b965dc28266ba8
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
Friedemann Kleint 2024-03-01 21:13:59 +01:00
parent 179c664c31
commit af814d7d9d
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ bool QSQLiteDriver::open(const QString & db, const QString &, const QString &, c
int regexpCacheSize = 25;
#endif
const auto opts = QStringView{conOpts}.split(u';');
const auto opts = QStringView{conOpts}.split(u';', Qt::SkipEmptyParts);
for (auto option : opts) {
option = option.trimmed();
if (option.startsWith("QSQLITE_BUSY_TIMEOUT"_L1)) {