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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user