From 8ccebab8bd332d62fa0b92818e90aa0d083e0836 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 28 Sep 1999 14:49:36 +0000 Subject: [PATCH] More cleanup for | and ^. --- src/backend/parser/gram.y | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 9d47406f21..c4355de20b 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.102 1999/09/28 14:38:02 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.103 1999/09/28 14:49:36 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -3682,6 +3682,10 @@ a_expr: attr { $$ = makeA_Expr(OP, "^", NULL, $2); } | '|' a_expr { $$ = makeA_Expr(OP, "|", NULL, $2); } + | ':' a_expr + { $$ = makeA_Expr(OP, ":", NULL, $2); } + | ';' a_expr + { $$ = makeA_Expr(OP, ";", NULL, $2); } | a_expr '%' { $$ = makeA_Expr(OP, "%", $1, NULL); } | a_expr '^' @@ -3715,12 +3719,6 @@ a_expr: attr | a_expr '=' a_expr { $$ = makeA_Expr(OP, "=", $1, $3); } - | ':' a_expr - { $$ = makeA_Expr(OP, ":", NULL, $2); } - | ';' a_expr - { $$ = makeA_Expr(OP, ";", NULL, $2); } - | '|' a_expr - { $$ = makeA_Expr(OP, "|", NULL, $2); } | a_expr TYPECAST Typename { $$ = (Node *)$1; @@ -4439,6 +4437,10 @@ b_expr: attr { $$ = makeA_Expr(OP, "^", NULL, $2); } | '|' b_expr { $$ = makeA_Expr(OP, "|", NULL, $2); } + | ':' b_expr + { $$ = makeA_Expr(OP, ":", NULL, $2); } + | ';' b_expr + { $$ = makeA_Expr(OP, ";", NULL, $2); } | b_expr '%' { $$ = makeA_Expr(OP, "%", $1, NULL); } | b_expr '^' @@ -4459,12 +4461,6 @@ b_expr: attr { $$ = makeA_Expr(OP, "^", $1, $3); } | b_expr '|' b_expr { $$ = makeA_Expr(OP, "|", $1, $3); } - | ':' b_expr - { $$ = makeA_Expr(OP, ":", NULL, $2); } - | ';' b_expr - { $$ = makeA_Expr(OP, ";", NULL, $2); } - | '|' b_expr - { $$ = makeA_Expr(OP, "|", NULL, $2); } | b_expr TYPECAST Typename { $$ = (Node *)$1; -- 2.40.0