Skip to content

Commit 147d626

Browse files
committed
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
1 parent b381b58 commit 147d626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/aclchk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
13321332
case DEFACLOBJ_RELATION:
13331333
iacls.objtype = ACL_OBJECT_RELATION;
13341334
break;
1335-
case ACL_OBJECT_SEQUENCE:
1335+
case DEFACLOBJ_SEQUENCE:
13361336
iacls.objtype = ACL_OBJECT_SEQUENCE;
13371337
break;
13381338
case DEFACLOBJ_FUNCTION:

0 commit comments

Comments
 (0)