提交 c8db55f7 编写于 作者: P Peter Eisentraut

Use ColId instead of Ident for SET SESSION AUTHORIZATION.

上级 766a44f7
......@@ -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; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册