Improve performance of the fts5 AND operator.
FossilOrigin-Name: b43e9a5b7a0483ccb102316a4dbc5e32b5bc69ec
This commit is contained in:
@@ -306,13 +306,13 @@ do_faultsim_test 9.1 -faults oom-* -body {
|
||||
do_faultsim_test 10.1 -faults oom-t* -body {
|
||||
db one { SELECT fts5_expr('a AND b NEAR(a b)') }
|
||||
} -test {
|
||||
faultsim_test_result {0 {"a" AND ("b" AND NEAR("a" "b", 10))}}
|
||||
faultsim_test_result {0 {"a" AND "b" AND NEAR("a" "b", 10)}}
|
||||
}
|
||||
|
||||
do_faultsim_test 10.2 -faults oom-t* -body {
|
||||
db one { SELECT fts5_expr_tcl('x:"a b c" AND b NEAR(a b)', 'ns', 'x') }
|
||||
} -test {
|
||||
set res {AND [ns -col 0 -- {a b c}] [AND [ns -- {b}] [ns -near 10 -- {a} {b}]]}
|
||||
set res {AND [ns -col 0 -- {a b c}] [ns -- {b}] [ns -near 10 -- {a} {b}]}
|
||||
faultsim_test_result [list 0 $res]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user