summaryrefslogtreecommitdiffstats
path: root/audio/clementine/sqlite.patch
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-17 16:34:39 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-19 22:47:36 +0700
commit6ba759aeee090f7f37841c681a2818647d9dada6 (patch)
tree7ccf8452417021739c05ba4288cfbbd84faf4e23 /audio/clementine/sqlite.patch
parent05b5229713f6690ed06547624056cf645389c58a (diff)
downloadslackbuilds-6ba759aeee090f7f37841c681a2818647d9dada6.tar.gz
slackbuilds-6ba759aeee090f7f37841c681a2818647d9dada6.tar.xz
audio/clementine: Updated for version 1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--audio/clementine/sqlite.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/clementine/sqlite.patch b/audio/clementine/sqlite.patch
new file mode 100644
index 0000000000..7f13e6109c
--- /dev/null
+++ b/audio/clementine/sqlite.patch
@@ -0,0 +1,20 @@
+--- a/src/core/database.cpp
++++ b/src/core/database.cpp
+@@ -265,6 +265,16 @@
+ 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("SELECT fts3_tokenizer(:name, :pointer)", db);
+ set_fts_tokenizer.bindValue(":name", "unicode");
+ set_fts_tokenizer.bindValue(
+