mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Use ColId instead of Ident for SET SESSION AUTHORIZATION.
This commit is contained in:
parent
766a44f77f
commit
c8db55f78a
@ -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; }
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user