mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Fix use of incorrect constant RemoveRoleFromObjectACL.
This could cause failures when DROP OWNED BY attempt to remove default privileges on sequences. Back-patching to 9.0. Shigeru Hanada
This commit is contained in:
@@ -1299,7 +1299,7 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
|
|||||||
case DEFACLOBJ_RELATION:
|
case DEFACLOBJ_RELATION:
|
||||||
iacls.objtype = ACL_OBJECT_RELATION;
|
iacls.objtype = ACL_OBJECT_RELATION;
|
||||||
break;
|
break;
|
||||||
case ACL_OBJECT_SEQUENCE:
|
case DEFACLOBJ_SEQUENCE:
|
||||||
iacls.objtype = ACL_OBJECT_SEQUENCE;
|
iacls.objtype = ACL_OBJECT_SEQUENCE;
|
||||||
break;
|
break;
|
||||||
case DEFACLOBJ_FUNCTION:
|
case DEFACLOBJ_FUNCTION:
|
||||||
|
Reference in New Issue
Block a user