This is the second of two patches required to fix the the grant and
revoke statements. From: James Hughes <jamesh@interpath.com>
This commit is contained in:
parent
af32f4d5d3
commit
151a1238d2
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.96 1998/01/22 23:04:52 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.97 1998/01/25 04:08:54 scrappy Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -1400,8 +1400,6 @@ opt_portal_name: IN name { $$ = $2; }
|
|||||||
GrantStmt: GRANT privileges ON relation_name_list TO grantee opt_with_grant
|
GrantStmt: GRANT privileges ON relation_name_list TO grantee opt_with_grant
|
||||||
{
|
{
|
||||||
$$ = (Node*)makeAclStmt($2,$4,$6,'+');
|
$$ = (Node*)makeAclStmt($2,$4,$6,'+');
|
||||||
free($2);
|
|
||||||
free($6);
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -1426,7 +1424,6 @@ operation_commalist: operation
|
|||||||
| operation_commalist ',' operation
|
| operation_commalist ',' operation
|
||||||
{
|
{
|
||||||
$$ = aclmakepriv($1,$3);
|
$$ = aclmakepriv($1,$3);
|
||||||
free($1);
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -1484,8 +1481,6 @@ opt_with_grant: WITH GRANT OPTION
|
|||||||
RevokeStmt: REVOKE privileges ON relation_name_list FROM grantee
|
RevokeStmt: REVOKE privileges ON relation_name_list FROM grantee
|
||||||
{
|
{
|
||||||
$$ = (Node*)makeAclStmt($2,$4,$6,'-');
|
$$ = (Node*)makeAclStmt($2,$4,$6,'-');
|
||||||
free($2);
|
|
||||||
free($6);
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user