mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 22:04:23 +01:00
adding regression test for duplicate cte
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user