Skip to content

Commit fe4142f

Browse files
committed
Allow targetList Entires in the Alias Clause
1 parent d9fc953 commit fe4142f

File tree

3 files changed

+826
-78
lines changed

3 files changed

+826
-78
lines changed

regress/expected/new_cypher.out

+20
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,26 @@ SELECT * FROM tst;
123123
---
124124
(0 rows)
125125

126+
SELECT tst.i FROM tst;
127+
i
128+
---
129+
(0 rows)
130+
131+
SELECT a.i FROM tst AS a;
132+
i
133+
---
134+
(0 rows)
135+
136+
SELECT a.i FROM tst a;
137+
i
138+
---
139+
(0 rows)
140+
141+
SELECT a.j FROM tst AS a(j);
142+
ERROR: syntax error at or near "("
143+
LINE 1: SELECT a.j FROM tst AS a(j);
144+
^
145+
--SELECT a.j FROM tst a(j);
126146
DROP GRAPH new_cypher CASCADE;
127147
NOTICE: drop cascades to 2 other objects
128148
DETAIL: drop cascades to table new_cypher._ag_label_vertex

regress/sql/new_cypher.sql

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ SELECT ALL;
6767

6868
SELECT *;
6969
SELECT * FROM tst;
70+
SELECT tst.i FROM tst;
71+
72+
SELECT a.i FROM tst AS a;
73+
SELECT a.i FROM tst a;
74+
75+
SELECT a.j FROM tst AS a(j);
76+
--SELECT a.j FROM tst a(j);
77+
7078

7179
DROP GRAPH new_cypher CASCADE;
7280
DROP GRAPH new_cypher_2 CASCADE;

0 commit comments

Comments
 (0)