1
0
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:
Robert Haas
2011-04-20 22:23:58 -04:00
parent 0babcdf6cf
commit 8ede427938

View File

@@ -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: