mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Correctly initialize the SrcItem.iCursor field to -1 when creating a co-routine from a multi-values VALUES clause.
FossilOrigin-Name: c32953ff6d72910815eaff29ab1b790c412e1a741d02c03c5911dda0c08e5130
This commit is contained in:
@ -252,5 +252,16 @@ do_execsql_test 6.1 {
|
||||
SELECT ( VALUES( x ), ( x ) ) FROM t1;
|
||||
} {1 2}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
reset_db
|
||||
do_execsql_test 6.0 {
|
||||
CREATE TABLE t1(x);
|
||||
INSERT INTO t1 VALUES('x'), ('y');
|
||||
}
|
||||
|
||||
do_execsql_test 6.1 {
|
||||
SELECT * FROM t1, (VALUES(1), (2))
|
||||
} {x 1 x 2 y 1 y 2}
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user