1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Remove a NEVER() from a condition in the partial-index constant value optimization that can sometimes be true.

FossilOrigin-Name: 63aea8c3e0605edcf49ad1e5ce1a56d2690dcb8c4857043997545daab46ca035
This commit is contained in:
dan
2023-09-26 19:26:47 +00:00
parent a6e7202677
commit 1c67749166
4 changed files with 19 additions and 10 deletions

View File

@ -322,5 +322,14 @@ do_execsql_test 6.7 {
2 1 2 2 5 2
}
#-------------------------------------------------------------------------
reset_db
do_execsql_test 7.0 {
CREATE TABLE t1(i INTEGER PRIMARY KEY, b TEXT, c TEXT);
CREATE INDEX i1 ON t1(c) WHERE b='abc' AND i=5;
INSERT INTO t1 VALUES(5, 'abc', 'xyz');
SELECT * FROM t1 INDEXED BY i1 WHERE b='abc' AND i=5 ORDER BY c;
} {5 abc xyz}
finish_test