]> granicus.if.org Git - postgresql/commitdiff
Fix use of incorrect constant RemoveRoleFromObjectACL.
authorRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2011 02:23:58 +0000 (22:23 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2011 02:23:58 +0000 (22:23 -0400)
This could cause failures when DROP OWNED BY attempt to remove default
privileges on sequences.  Back-patching to 9.0.

Shigeru Hanada

src/backend/catalog/aclchk.c

index 693b6343984bbe5f5573f2c6e9e9c28a30c5210b..db58ec29f6776d73be5d8ee5018adce7d3e9fe71 100644 (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: