1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Minor correction: cause ALTER ROLE role ROLE rolenames to behave

sensibly, even though we don't document it.
This commit is contained in:
Tom Lane
2005-07-26 22:37:50 +00:00
parent af019fb9ae
commit 0c2d7e39f9
2 changed files with 8 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.503 2005/07/26 16:38:27 tgl Exp $
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.504 2005/07/26 22:37:50 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -728,6 +728,7 @@ AlterRoleStmt:
{
AlterRoleStmt *n = makeNode(AlterRoleStmt);
n->role = $3;
n->action = +1; /* add, if there are members */
n->options = $5;
$$ = (Node *)n;
}
@@ -764,6 +765,7 @@ AlterUserStmt:
{
AlterRoleStmt *n = makeNode(AlterRoleStmt);
n->role = $3;
n->action = +1; /* add, if there are members */
n->options = $5;
$$ = (Node *)n;
}