Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ede427

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 0babcdf commit 8ede427

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
@@ -1299,7 +1299,7 @@ RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid)
12991299
case DEFACLOBJ_RELATION:
13001300
iacls.objtype = ACL_OBJECT_RELATION;
13011301
break;
1302-
case ACL_OBJECT_SEQUENCE:
1302+
case DEFACLOBJ_SEQUENCE:
13031303
iacls.objtype = ACL_OBJECT_SEQUENCE;
13041304
break;
13051305
case DEFACLOBJ_FUNCTION:

0 commit comments

Comments
 (0)