Fix use of incorrect constant RemoveRoleFromObjectACL.
authorRobert Haas
Thu, 21 Apr 2011 02:23:58 +0000 (22:23 -0400)
committerRobert Haas
Thu, 21 Apr 2011 02:26:12 +0000 (22:26 -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 9b5602ed0047529d61832854fdf529d42089cf1e..ea49b7467832feea1d2979adfa64203a2cad08fd 100644 (file)
@@ -1332,7 +1332,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: