Commit c8db55f7 authored by Peter Eisentraut's avatar Peter Eisentraut

Use ColId instead of Ident for SET SESSION AUTHORIZATION.

parent 766a44f7
...@@ -11,7 +11,7 @@ ...@@ -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); ...@@ -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 ...@@ -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; } ...@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment