Use ColId instead of Ident for SET SESSION AUTHORIZATION.

This commit is contained in:
Peter Eisentraut 2001-05-09 16:50:44 +00:00
parent 766a44f77f
commit c8db55f78a
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.224 2001/05/08 21:06:42 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.225 2001/05/09 16:50:44 petere Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@ -259,7 +259,7 @@ static void doNegateFloat(Value *v);
%type <ival> Iconst
%type <str> Sconst, comment_text
%type <str> UserId, opt_boolean, var_value, zone_value, Ident_or_Sconst
%type <str> UserId, opt_boolean, var_value, zone_value, ColId_or_Sconst
%type <str> ColId, ColLabel, TokenId
%type <node> TableConstraint
@ -761,7 +761,7 @@ VariableSetStmt: SET ColId TO var_value
n->value = $3;
$$ = (Node *) n;
}
| SET SESSION AUTHORIZATION Ident_or_Sconst
| SET SESSION AUTHORIZATION ColId_or_Sconst
{
VariableSetStmt *n = makeNode(VariableSetStmt);
n->name = "session_authorization";
@ -844,7 +844,7 @@ opt_encoding: Sconst { $$ = $1; }
| /*EMPTY*/ { $$ = NULL; }
;
Ident_or_Sconst: IDENT { $$ = $1; }
ColId_or_Sconst: ColId { $$ = $1; }
| SCONST { $$ = $1; }