Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:branches:multimedia
clementine
clementine-sqlite3_fts3_hack.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clementine-sqlite3_fts3_hack.patch of Package clementine
From 7097a942fadf5cc9b9c42bb9763b8039164b27ed Mon Sep 17 00:00:00 2001 From: v-fox <virtuousfox@gmail.com> Date: Fri, 5 Jan 2018 19:24:23 +0500 Subject: [PATCH] https://github.com/clementine-player/Clementine/issues/5297#issuecomment-196211148 --- src/core/database.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/database.cpp b/src/core/database.cpp index 3c60fde..ac5bdbd 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -265,6 +265,16 @@ QSqlDatabase Database::Connect() { StaticInit(); { + #ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER + QVariant v = db.driver()->handle(); + if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) { + sqlite3* handle = *static_cast<sqlite3**>(v.data()); + if (handle) { + sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL); + } + } + #endif + QSqlQuery set_fts_tokenizer(db); set_fts_tokenizer.prepare("SELECT fts3_tokenizer(:name, :pointer)"); set_fts_tokenizer.bindValue(":name", "unicode"); -- 2.15.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor