Skip to content

Commit

Permalink
remove pgq_a_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Feb 20, 2024
1 parent 617bab4 commit ae81905
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 229 deletions.
9 changes: 2 additions & 7 deletions third_party/libpg_query/grammar/statements/select.y
Original file line number Diff line number Diff line change
Expand Up @@ -3315,14 +3315,9 @@ row: qualified_row { $$ = $1;}
| '(' expr_list ',' a_expr ')' { $$ = lappend($2, $4); }
;

pgq_a_expr:
a_expr { $$ = $1; }
| pgq_unreserved_keyword { $$ = pstrdup($1); }
;


dict_arg:
ColIdOrString ':' pgq_a_expr {
ColIdOrString ':' a_expr {
PGNamedArgExpr *na = makeNode(PGNamedArgExpr);
na->name = $1;
na->arg = (PGExpr *) $3;
Expand All @@ -3342,7 +3337,7 @@ dict_arguments_opt_comma:
;

map_arg:
pgq_a_expr ':' pgq_a_expr
a_expr ':' a_expr
{
$$ = list_make2($1, $3);
}
Expand Down
1 change: 0 additions & 1 deletion third_party/libpg_query/grammar/types/pgq.yh
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@
%type <str> LabelOptional
%type <list> EdgeTablesClauseOptional
%type <range> GraphTableNameOptional
%type <node> pgq_a_expr
Loading

0 comments on commit ae81905

Please sign in to comment.