File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.158 2005/07/26 16:38:26 tgl Exp $
9
+ * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.159 2005/07/26 22:37:49 tgl Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -377,6 +377,10 @@ CreateRole(CreateRoleStmt *stmt)
377
377
378
378
/*
379
379
* ALTER ROLE
380
+ *
381
+ * Note: the rolemembers option accepted here is intended to support the
382
+ * backwards-compatible ALTER GROUP syntax. Although it will work to say
383
+ * "ALTER ROLE role ROLE rolenames", we don't document it.
380
384
*/
381
385
void
382
386
AlterRole (AlterRoleStmt * stmt )
Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.503 2005/07/26 16:38:27 tgl Exp $
14
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.504 2005/07/26 22:37:50 tgl Exp $
15
15
*
16
16
* HISTORY
17
17
* AUTHOR DATE MAJOR EVENT
@@ -728,6 +728,7 @@ AlterRoleStmt:
728
728
{
729
729
AlterRoleStmt *n = makeNode(AlterRoleStmt);
730
730
n->role = $3 ;
731
+ n->action = +1 ; /* add, if there are members */
731
732
n->options = $5 ;
732
733
$$ = (Node *)n;
733
734
}
@@ -764,6 +765,7 @@ AlterUserStmt:
764
765
{
765
766
AlterRoleStmt *n = makeNode(AlterRoleStmt);
766
767
n->role = $3 ;
768
+ n->action = +1 ; /* add, if there are members */
767
769
n->options = $5 ;
768
770
$$ = (Node *)n;
769
771
}
You can’t perform that action at this time.
0 commit comments