1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

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

View File

@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * 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 * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
@ -259,7 +259,7 @@ static void doNegateFloat(Value *v);
%type <ival> Iconst %type <ival> Iconst
%type <str> Sconst, comment_text %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 <str> ColId, ColLabel, TokenId
%type <node> TableConstraint %type <node> TableConstraint
@ -761,7 +761,7 @@ VariableSetStmt: SET ColId TO var_value
n->value = $3; n->value = $3;
$$ = (Node *) n; $$ = (Node *) n;
} }
| SET SESSION AUTHORIZATION Ident_or_Sconst | SET SESSION AUTHORIZATION ColId_or_Sconst
{ {
VariableSetStmt *n = makeNode(VariableSetStmt); VariableSetStmt *n = makeNode(VariableSetStmt);
n->name = "session_authorization"; n->name = "session_authorization";
@ -844,7 +844,7 @@ opt_encoding: Sconst { $$ = $1; }
| /*EMPTY*/ { $$ = NULL; } | /*EMPTY*/ { $$ = NULL; }
; ;
Ident_or_Sconst: IDENT { $$ = $1; } ColId_or_Sconst: ColId { $$ = $1; }
| SCONST { $$ = $1; } | SCONST { $$ = $1; }