Skip to content

Commit 64ebb58

Browse files
author
Thomas G. Lockhart
committed
Allow LIKE expression in constraint clause.
Allow USER and VALID as column names and identifiers.
1 parent 5ac4dca commit 64ebb58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/parser/gram.y

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.3 1998/02/18 03:26:54 vadim Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.4 1998/02/18 07:25:57 thomas Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -994,6 +994,8 @@ constraint_expr: AexprConst
994994
}
995995
| constraint_expr Op constraint_expr
996996
{ $$ = nconc( $1, lcons( makeString( $2), $3)); }
997+
| constraint_expr LIKE constraint_expr
998+
{ $$ = nconc( $1, lcons( makeString( "like"), $3)); }
997999
| constraint_expr AND constraint_expr
9981000
{ $$ = nconc( $1, lcons( makeString( "AND"), $3)); }
9991001
| constraint_expr OR constraint_expr
@@ -4620,6 +4622,8 @@ ColId: IDENT { $$ = $1; }
46204622
| TIME { $$ = "time"; }
46214623
| TRIGGER { $$ = "trigger"; }
46224624
| TYPE_P { $$ = "type"; }
4625+
| USER { $$ = "user"; }
4626+
| VALID { $$ = "valid"; }
46234627
| VERSION { $$ = "version"; }
46244628
| ZONE { $$ = "zone"; }
46254629
;

0 commit comments

Comments
 (0)