Fix crash in sqlite3_vtab_collation() when called for an IS NOT NULL

constraint.

FossilOrigin-Name: ad38d2c4f073705c02c7b38675e8ae86fe4a794d54eb796e7ed51a905824d5f5
This commit is contained in:
dan
2017-12-19 18:56:28 +00:00
parent ebeffef36c
commit e42e1bc594
4 changed files with 21 additions and 10 deletions
+9
View File
@@ -292,6 +292,15 @@ do_setup_rec_test $tn.15 {
0|1|1|SEARCH TABLE t1 USING INTEGER PRIMARY KEY (rowid=?)
}
do_setup_rec_test $tn.16 {
CREATE TABLE t1(a, b);
} {
SELECT * FROM t1 WHERE b IS NOT NULL;
} {
(no new indexes)
0|0|0|SCAN TABLE t1
}
}
proc do_candidates_test {tn sql res} {