diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-04-20 22:23:58 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-04-20 22:23:58 -0400 |
commit | 8ede427938e9676d0e497406c213f098303a93f3 (patch) | |
tree | d83ab2140bb8bcf3649de87538cc2e0beb28682b /src | |
parent | 0babcdf6cfdfb2a828056afc3172ec524f090fd5 (diff) | |
download | postgresql-8ede427938e9676d0e497406c213f098303a93f3.tar.gz postgresql-8ede427938e9676d0e497406c213f098303a93f3.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/aclchk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c index 693b6343984..db58ec29f67 100644 --- a/src/backend/catalog/aclchk.c +++ b/src/backend/catalog/aclchk.c @@ -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: |