From: Robert Haas Date: Mon, 7 Jan 2013 16:54:59 +0000 (-0500) Subject: Fix incorrect error message when schema-CREATE permission is absent. X-Git-Tag: REL9_3_BETA1~524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0dc23f2058b3b2a3ab8c131914aba40f96db19f;p=postgresql Fix incorrect error message when schema-CREATE permission is absent. Report by me. Fix by KaiGai Kohei. --- diff --git a/src/backend/commands/alter.c b/src/backend/commands/alter.c index f6287542b3..73138f940a 100644 --- a/src/backend/commands/alter.c +++ b/src/backend/commands/alter.c @@ -632,7 +632,7 @@ AlterObjectOwner_internal(Relation rel, Oid objectId, Oid new_ownerId) aclresult = pg_namespace_aclcheck(namespaceId, new_ownerId, ACL_CREATE); if (aclresult != ACLCHECK_OK) - aclcheck_error(aclresult, aclkind, + aclcheck_error(aclresult, ACL_KIND_NAMESPACE, get_namespace_name(namespaceId)); } }