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

In rtree.c, ensure that the pReadAux statement is reset whenever the bAuxValid flag is cleared. Possible fix for [forum:/forumpost/3e45ed31d8 | forum post 3e45ed31d8].

FossilOrigin-Name: 1740f9a09850f6647fc1f6384353d89a1ac0b2b15c429b576b6014eada71937e
This commit is contained in:
dan
2025-07-14 15:34:11 +00:00
parent 08f8111bd8
commit 194f0bada7
4 changed files with 36 additions and 8 deletions

View File

@ -99,5 +99,24 @@ do_execsql_test rtreeH-300 {
ORDER BY id;
} {box-48,48 box-49,48 box-48,49 xbox-49,49}
#-------------------------------------------------------------------------
reset_db
do_execsql_test rtreeH-300 {
CREATE TABLE t0(c0);
INSERT INTO t0(c0) VALUES (NULL);
INSERT INTO t0(c0) VALUES (1);
CREATE VIRTUAL TABLE t1 USING rtree(c0, c1, c2, +c3 BLOB );
INSERT INTO t1(c2, c3, c0) VALUES (1, 2, 1);
}
do_execsql_test rtreeH-310 {
SELECT 1 FROM t1 WHERE t1.c3;
} {1}
do_execsql_test rtreeH-320 {
SELECT * FROM t0 WHERE NOT EXISTS (
SELECT 1 FROM t1 WHERE t1.c3 OR t0.c0 ISNULL
);
} {}
finish_test