File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -1572,6 +1572,18 @@ RETURN (SELECT COUNT(*) FROM tst);
1572
1572
3
1573
1573
(1 row)
1574
1574
1575
+ CYPHER WITH (RETURN 1) as a RETURN a;
1576
+ a
1577
+ ---
1578
+ 1
1579
+ (1 row)
1580
+
1581
+ CYPHER WITH (SELECT i FROM tst LIMIT 1) as a RETURN a;
1582
+ a
1583
+ ---
1584
+ 1
1585
+ (1 row)
1586
+
1575
1587
--
1576
1588
-- Clean up
1577
1589
--
Original file line number Diff line number Diff line change @@ -352,6 +352,9 @@ RETURN (SELECT * FROM tst);
352
352
353
353
RETURN (SELECT COUNT (* ) FROM tst);
354
354
355
+ CYPHER WITH (RETURN 1 ) as a RETURN a;
356
+ CYPHER WITH (SELECT i FROM tst LIMIT 1 ) as a RETURN a;
357
+
355
358
--
356
359
-- Clean up
357
360
--
Original file line number Diff line number Diff line change @@ -17914,6 +17914,23 @@ cypher_expr_atom:
17914
17914
}
17915
17915
| expr_case
17916
17916
| cypher_expr_func
17917
+ | ' (' cypher_stmt ' )' %prec UMINUS
17918
+ {
17919
+ cypher_sub_pattern *sub;
17920
+
17921
+ sub = make_ag_node (cypher_sub_pattern);
17922
+ sub->pattern = $2 ;
17923
+ sub->kind = CSP_EXISTS;
17924
+
17925
+ SubLink *n = makeNode (SubLink);
17926
+ n->subLinkType = EXPR_SUBLINK;
17927
+ n->subLinkId = 0 ;
17928
+ n->testexpr = NULL ;
17929
+ n->operName = NIL;
17930
+ n->subselect = sub;
17931
+ n->location = @1 ;
17932
+ $$ = (Node *)n;
17933
+ }
17917
17934
| EXISTS ' (' anonymous_path ' )'
17918
17935
{
17919
17936
cypher_match *match = make_ag_node (cypher_match);
You can’t perform that action at this time.
0 commit comments