1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Update an assert() in wherecode.c that might fail following an unrelated SQL error.

FossilOrigin-Name: 3e2c36a8272ab3c1777638c0ed8222e7ff04657fe1c40f74a63b99a5a90258cc
This commit is contained in:
dan
2021-05-26 14:32:33 +00:00
parent 137b8ebb2b
commit 151446e793
4 changed files with 22 additions and 9 deletions

View File

@@ -297,5 +297,18 @@ do_execsql_test 7.3 {
);
} { 1 4 1 5 }
#-------------------------------------------------------------------------
#
do_execsql_test 8.1 {
CREATE TABLE t1(a ,b FLOAT);
CREATE INDEX t1x1 ON t1(a,b,a,a,a,a,a,a,a,a,a,b);
}
do_catchsql_test 8.2 {
SELECT a FROM t1 NATURAL JOIN t1 WHERE (a,b)> (SELECT 2 IN (SELECT 2,2), 2);
} {1 {sub-select returns 2 columns - expected 1}}
finish_test