diff options
Diffstat (limited to 'src/test/regress/expected/union.out')
| -rw-r--r-- | src/test/regress/expected/union.out | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/regress/expected/union.out b/src/test/regress/expected/union.out index 0f93a842e4e..26b718e9033 100644 --- a/src/test/regress/expected/union.out +++ b/src/test/regress/expected/union.out @@ -1035,6 +1035,20 @@ select from generate_series(1,5) except all select from generate_series(1,3); -- (2 rows) +-- Try a variation of the above but with a CTE which contains a column, again +-- with an empty final select list. +-- Ensure we get the expected 1 row with 0 columns +with cte as materialized (select s from generate_series(1,5) s) +select from cte union select from cte; +-- +(1 row) + +-- Ensure we get the same result as the above. +with cte as not materialized (select s from generate_series(1,5) s) +select from cte union select from cte; +-- +(1 row) + reset enable_hashagg; reset enable_sort; -- |
