adding regression test for duplicate cte

This commit is contained in:
RS2007
2025-10-31 23:15:11 +05:30
parent 7fff8daaa5
commit bdf720d205

View File

@@ -1112,4 +1112,9 @@ do_execsql_test_on_specific_db {:memory:} group-by-limit-0 {
CREATE TABLE t(a);
INSERT INTO t VALUES (1), (2), (3);
SELECT a, COUNT(*) FROM t GROUP BY a LIMIT 0;
} {}
} {}
do_execsql_test_in_memory_any_error duplicate-with-cte-name {
CREATE TABLE t2(x INTEGER);
WITH t as (SELECT 1), t as (SELECT 2) SELECT * FROM t2;
}