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

Fix a problem handling "INSERT INTO ... SELECT ... UNION VALUES(...), (...)" and similar statements.

FossilOrigin-Name: e8a2a8198a97046ff376bc5d38e4bc0a24fcac79f5a0dadb9d29d953a862a012
This commit is contained in:
dan
2024-03-14 19:01:17 +00:00
parent f0f4323824
commit 400992b1c4
4 changed files with 26 additions and 9 deletions

View File

@ -388,5 +388,19 @@ ifcapable fts5 {
INSERT INTO ft VALUES('one'), ('two');
}
}
#-------------------------------------------------------------------------
reset_db
do_execsql_test 12.0 {
CREATE TABLE t1(a, b);
}
do_execsql_test 12.1 {
INSERT INTO t1 SELECT 1, 2 UNION ALL VALUES(3, 4), (5, 6);
}
do_execsql_test 12.2 {
SELECT * FROM t1
} {1 2 3 4 5 6}
finish_test