From bdf720d20551e15dc34544be5ea81dda34d7588f Mon Sep 17 00:00:00 2001 From: RS2007 Date: Fri, 31 Oct 2025 23:15:11 +0530 Subject: [PATCH] adding regression test for duplicate cte --- testing/select.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/select.test b/testing/select.test index daa3e220b..a2d1c93ae 100755 --- a/testing/select.test +++ b/testing/select.test @@ -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; -} {} \ No newline at end of file +} {} + +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; +} \ No newline at end of file