1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00

two-arg fts3_tokenizer() is disabled by default for security concerns as of SQLite 3.11.0, unless DBD::SQLite is compiled with -DSQLITE_ENABLE_FTS3_TOKENIZER

This commit is contained in:
Kenichi Ishigaki 2016-02-16 11:55:27 +09:00
parent 0c5895c77f
commit abed684c43

View file

@ -33,6 +33,9 @@ BEGIN {
if (!grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) { if (!grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) {
plan skip_all => 'FTS3 is disabled for this DBD::SQLite'; plan skip_all => 'FTS3 is disabled for this DBD::SQLite';
} }
if ($DBD::SQLite::sqlite_version_number >= 3011000 and !grep /ENABLE_FTS3_TOKENIZER/, DBD::SQLite::compile_options()) {
plan skip_all => 'FTS3 tokenizer is disabled for this DBD::SQLite';
}
} }
use Test::NoWarnings; use Test::NoWarnings;