Patch downloaded from https://github.com/clementine-player/Clementine/pull/5669 . diff -ruN clementine-1.3.1.565.gd20c2244a.orig/src/core/database.cpp clementine-1.3.1.565.gd20c2244a/src/core/database.cpp --- clementine-1.3.1.565.gd20c2244a.orig/src/core/database.cpp 2018-07-07 23:59:24.018540126 +0200 +++ clementine-1.3.1.565.gd20c2244a/src/core/database.cpp 2018-07-08 00:04:47.991551728 +0200 @@ -265,6 +265,17 @@ StaticInit(); { + +#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER + // In case sqlite>=3.12 is compiled without -DSQLITE_ENABLE_FTS3_TOKENIZER + // (generally a good idea due to security reasons) the fts3 support should be enabled explicitly. + QVariant v = db.driver()->handle(); + if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) { + sqlite3 *handle = *static_cast(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"); =ae98caf5bca3cab25bffd180929f4ecf7d7f1aa9'>refslogtreecommitdiff
path: root/gnu/packages/javascript.scm
AgeCommit message (Expand)Author
2024-07-25gnu: mujs: Update to 1.3.5....宋文武
2024-04-07gnu: quickjs: Update to 2024-01-13....Efraim Flashner
2024-04-07gnu: quickjs: Fix building on powerpc-linux....Efraim Flashner
2024-04-07gnu: quickjs: Remove pre-generated documentation....Efraim Flashner
2024-03-19gnu: quickjs: Honor the #:tests? flag....Zheng Junjie
2024-03-19gnu: quickjs: Use G-expressions....Zheng Junjie
2024-03-19gnu: quickjs: Fix building on riscv64-linux....Zheng Junjie
2023-12-15gnu: Add js-datatables-1.9....Ricardo Wurmus
2023-12-02gnu: Use ‘libc-utf8-locales-for-target’....Janneke Nieuwenhuizen