mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-16 18:51:09 +01:00
Make enabling FTS3 non-fatal
This commit is contained in:
parent
b7de5d6df3
commit
b5cea4c27e
@ -160,8 +160,7 @@ QSqlDatabase Database::Connect() {
|
|||||||
if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) {
|
if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) {
|
||||||
sqlite3 *handle = *static_cast<sqlite3**>(v.data());
|
sqlite3 *handle = *static_cast<sqlite3**>(v.data());
|
||||||
if (handle) {
|
if (handle) {
|
||||||
int result = sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, nullptr);
|
(void)sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, nullptr);
|
||||||
if (result != SQLITE_OK) qLog(Fatal) << "Unable to enable FTS3 tokenizer";
|
|
||||||
}
|
}
|
||||||
else qLog(Fatal) << "Unable to enable FTS3 tokenizer";
|
else qLog(Fatal) << "Unable to enable FTS3 tokenizer";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user