Subject: | FTS3 custom tokenizers disabled by default in SQLite 3.11.0 |
Date: | Sat, 27 Feb 2016 11:59:59 +0100 |
To: | bug-DBD-SQLite [...] rt.cpan.org |
From: | Achim Gratz <Stromeko [...] nexgo.de> |
Starting with SQLite version 3.11.0 the FTS3 custom tokenizer is
disabled due to security concerns unless SQLITE_ENABLE_FTS3_TOKENIZER is
defined during compilation. The following patch skips the FTS3 tests in
this case since they don't work if the custom tokenizer can't be
registered:
--8<---------------cut here---------------start------------->8---
--- origsrc/DBD-SQLite-1.50/t/43_fts3.t 2015-02-17 07:57:49.000000000 +0100
+++ src/DBD-SQLite-1.50/t/43_fts3.t 2016-02-27 11:55:34.715375700 +0100
@@ -30,9 +30,12 @@ BEGIN {
if ($] < 5.008005) {
plan skip_all => 'Unicode is not supported before 5.8.5';
}
- if (!grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) {
+ unless (grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) {
plan skip_all => 'FTS3 is disabled for this DBD::SQLite';
}
+ unless (has_sqlite('3.11.0') and grep /ENABLE_FTS3_TOKENIZER/, DBD::SQLite::compile_options()) {
+ plan skip_all => 'FTS3 custom tokenizers are disabled for this DBD::SQLite';
+ }
}
use Test::NoWarnings;
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables