Handle the case where a tokenizer determines that there are zero tokens in an fts5 query term.

FossilOrigin-Name: 75f3d17f864072dfa2caee182b86cc4b9972d691
This commit is contained in:
dan
2015-01-19 11:15:36 +00:00
parent d8736bc3b8
commit aa4d380a42
5 changed files with 111 additions and 38 deletions
+8
View File
@@ -21,6 +21,8 @@ ifcapable !fts5 {
return
}
if 0 {
do_execsql_test 1.0 {
CREATE VIRTUAL TABLE t1 USING fts5(a, b, c);
SELECT name, sql FROM sqlite_master;
@@ -300,6 +302,8 @@ do_test 12.3 {
string is integer $res
} {1}
}
#-------------------------------------------------------------------------
#
reset_db
@@ -320,6 +324,10 @@ do_execsql_test 13.5 {
SELECT rowid FROM t1 WHERE t1 MATCH 'o';
} {1}
do_execsql_test 13.6 {
SELECT rowid FROM t1 WHERE t1 MATCH '.';
} {}
finish_test