correct union result_row or yield emission + test

This commit is contained in:
pedrocarlo 2025-05-26 01:06:26 -03:00
parent ee93316c46
commit 1410e57112
2 changed files with 42 additions and 15 deletions

View file

@ -296,3 +296,13 @@ do_execsql_test_on_specific_db {:memory:} insert_from_select_same_table_2 {
4|1|100
5|2|200
6|3|300}
do_execsql_test_on_specific_db {:memory:} insert_from_select_union {
CREATE TABLE t(a, b);
CREATE TABLE t2(b, c);
INSERT INTO t2 VALUES (1, 100), (2, 200);
INSERT INTO t SELECT * FROM t UNION SELECT * FROM t2;
SELECT * FROM t;
} {1|100
2|200}