1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-09-11 08:30:57 +03:00

Avoid passing NULL to the xOpen method of an FTS3/4 tokenizer.

FossilOrigin-Name: 0dd09fc034c127718366d3a3183e367d2f9fd82d
This commit is contained in:
dan
2011-04-19 06:43:22 +00:00
parent 1c4e603727
commit 355c53b6ef
4 changed files with 32 additions and 14 deletions

View File

@@ -24,6 +24,8 @@ ifcapable !fts3 {
return
}
set ::testprefix fts3token
proc escape_string {str} {
set out ""
foreach char [split $str ""] {
@@ -167,8 +169,18 @@ ifcapable icu {
do_icu_test fts3token-4.8 en_US $input $output
}
do_execsql_test 5.1 {
CREATE VIRTUAL TABLE x1 USING fts3(name,TOKENIZE icu en_US);
insert into x1 (name) values (NULL);
insert into x1 (name) values (NULL);
delete from x1;
}
do_test fts3token-internal {
execsql { SELECT fts3_tokenizer_internal_test() }
} {ok}
finish_test