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
1 changed files with 1 additions and 1 deletions

View File

@ -1299,7 +1299,7 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
case DEFACLOBJ_RELATION:
iacls.objtype = ACL_OBJECT_RELATION;
break;
case ACL_OBJECT_SEQUENCE:
case DEFACLOBJ_SEQUENCE:
iacls.objtype = ACL_OBJECT_SEQUENCE;
break;
case DEFACLOBJ_FUNCTION: