The two-argument version of fts3_tokenizer() works regardless of the
value of SQLITE_DBCONFIG_ENABLE_FT3_TOKENIZER as long as the second argument is a bind parameter. FossilOrigin-Name: ab76e3a90e56bd36a17ded9c7a77e88632ca12d3bd73f197df747a634c81e0cf
This commit is contained in:
@@ -86,10 +86,24 @@ do_test fts3atoken-1.5 {
|
||||
}
|
||||
} {{There was movement at the station}}
|
||||
|
||||
unset -nocomplain simple
|
||||
set simple [db one {SELECT fts3_tokenizer('simple')}]
|
||||
sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 0
|
||||
do_catchsql_test 1.6 {
|
||||
SELECT fts3_tokenizer('blah', fts3_tokenizer('simple')) IS NULL;
|
||||
} {1 {fts3tokenize disabled}}
|
||||
do_test fts3atoken-1.7 {
|
||||
execsql {
|
||||
SELECT fts3_tokenizer('blah2', $simple) IS NULL;
|
||||
}
|
||||
} {1}
|
||||
sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1
|
||||
do_test fts3atoken-1.8 {
|
||||
execsql {
|
||||
SELECT fts3_tokenizer('blah2') == fts3_tokenizer('simple');
|
||||
}
|
||||
} {1}
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user