Skip to content

Commit ccbda84

Browse files
committed
Support indirection .*
1 parent 07d64b3 commit ccbda84

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

regress/expected/new_cypher.out

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ SELECT i FROM tst WHERE i > i;
153153
(0 rows)
154154

155155
--SELECT a.j FROM tst a(j);
156+
SELECT a.* FROM tst as a;
157+
i
158+
---
159+
(0 rows)
160+
156161
DROP GRAPH new_cypher CASCADE;
157162
NOTICE: drop cascades to 2 other objects
158163
DETAIL: drop cascades to table new_cypher._ag_label_vertex

regress/sql/new_cypher.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ SELECT a.j FROM tst AS a(j);
7777
SELECT i FROM tst WHERE i = i;
7878
SELECT i FROM tst WHERE i > i;
7979
--SELECT a.j FROM tst a(j);
80-
80+
SELECT a.* FROM tst as a;
8181

8282
DROP GRAPH new_cypher CASCADE;
8383
DROP GRAPH new_cypher_2 CASCADE;

src/backend/parser/cypher_gram.y

+2-2
Original file line numberDiff line numberDiff line change
@@ -1838,11 +1838,11 @@ indirection_el:
18381838
{
18391839
$$ = (Node *) makeString($2);
18401840
}
1841-
/*| '.' '*'
1841+
| '.' '*'
18421842
{
18431843
$$ = (Node *) makeNode(A_Star);
18441844
}
1845-
| '[' cypher_a_expr ']'
1845+
/*| '[' a_expr ']'
18461846
{
18471847
A_Indices *ai = makeNode(A_Indices);
18481848
ai->is_slice = false;

0 commit comments

Comments
 (0)