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

When generating data for a RETURNING clause, avoid assuming cursor number 0 is available for use.

FossilOrigin-Name: 4b2c59acce6ff1bb6c9c04c45c80945ae23a26588718cc20635d60f7497adabb
This commit is contained in:
dan
2021-06-28 15:25:17 +00:00
parent 4422b3a646
commit cf1e25566b
4 changed files with 24 additions and 9 deletions

View File

@ -318,4 +318,18 @@ do_test 12.4 {
lsort [array names cname]
} {{"x"+"y"} *}
#-------------------------------------------------------------------------
# Based on dbsqlfuzz find crash-ffbba524cac354b2a61bfd677cec9d2a4333f49a
reset_db
do_execsql_test 13.0 {
CREATE VIRTUAL TABLE t1 USING rtree(a, b, c);
CREATE TABLE t2(x);
}
do_execsql_test 13.1 {
INSERT INTO t1(a,b,c) VALUES(1,2,3)
RETURNING (SELECT b FROM t2);
} {{}}
finish_test