提交 43a6faed authored 作者: devnied's avatar devnied

Add test to check schema when a recursive view in called in an other view

上级 7f4d863a
......@@ -44,3 +44,26 @@ with
> - -- -- --
> 0 -1 1 10
> rows: 1
CREATE SCHEMA SCH;
> ok
CREATE FORCE VIEW TABLE_EXPRESSION SCH.R1(N) AS
(SELECT 1)
UNION ALL
(SELECT (N + 1) FROM SCH.R1 WHERE N < 3);
> ok
CREATE VIEW SCH.R2(N) AS
(SELECT 1)
UNION ALL
(SELECT (N + 1) FROM SCH.R1 WHERE N < 3);
> ok
SELECT * FROM SCH.R2;
> N
> -
> 1
> 2
> 3
> rows: 3
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论