SQL/SQLite: Silence warning "Unsupported option ''"
It shows for example when starting assistant. Amends 3379fd2322d112af4ef7ce75aafe18c27746acae. Change-Id: I85196c62ff9d9caaa46a5279c3b965dc28266ba8 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit af814d7d9d35405fabdf25e3e8f3a243d4d55deb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e75a5955b2
commit
60b6257a3b
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user