18 lines
366 B
SQL
18 lines
366 B
SQL
# name: test/sql/cte/test_cte_overflow.test
|
|
# description: Ensure no stack overflow for CTE names that match existing tables
|
|
# group: [cte]
|
|
|
|
statement ok
|
|
create table a (id integer)
|
|
|
|
statement ok
|
|
insert into a values (1729)
|
|
|
|
statement ok
|
|
create view va as (with v as (select * from a) select * from v)
|
|
|
|
query I
|
|
with a as (select * from va) select * from a
|
|
----
|
|
1729
|