Fix an error in the OP_SeekScan opcode added by check-in [4a43430fd23f8835].

Problem reported by [forum:/forumpost/8cc1dc0fe9|forum post 8cc1dc0fe9].

FossilOrigin-Name: 651a13fcd16f03e89eb6228c9f3250e25910b9bbe2637f627f65ff78f8ba2059
This commit is contained in:
drh
2023-03-24 21:24:52 +00:00
parent b3ad5444d0
commit ed8e12e97b
4 changed files with 19 additions and 8 deletions
+10
View File
@@ -419,4 +419,14 @@ do_execsql_test skipscan1-4.10 {
AND a <= 10;
} {3}
# 2023-03-24 https://sqlite.org/forum/forumpost/8cc1dc0fe9
#
reset_db
do_execsql_test skipscan1-5.0 {
CREATE TABLE t1(a TEXT, UNIQUE(a,a,a));
INSERT INTO t1 VALUES (hex(zeroblob(241))),(1),(2),(3);
ANALYZE;
SELECT max(a) FROM t1 WHERE a IN t1;
} {3}
finish_test