1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add test case to ensure the assert() removed by [f090af77] no longer fails.

FossilOrigin-Name: 615ab71761754b072439f92e73fdb98c916b820937bcca8904f4be34936d5f9c
This commit is contained in:
dan
2023-09-29 15:56:40 +00:00
parent 8be48440b6
commit bee5657042
3 changed files with 24 additions and 8 deletions

View File

@ -331,5 +331,21 @@ do_execsql_test 7.0 {
SELECT * FROM t1 INDEXED BY i1 WHERE b='abc' AND i=5 ORDER BY c;
} {5 abc xyz}
#-------------------------------------------------------------------------
reset_db
do_execsql_test 8.0 {
CREATE TABLE t1(a, b, c);
CREATE INDEX ex2 ON t1(a, 4);
CREATE INDEX ex1 ON t1(a) WHERE 4=b;
INSERT INTO t1 VALUES(1, 4, 1);
INSERT INTO t1 VALUES(1, 5, 1);
INSERT INTO t1 VALUES(2, 4, 2);
}
do_execsql_test 8.1 {
SELECT * FROM t1 WHERE b=4;
} {
1 4 1 2 4 2
}
finish_test