From a0dc23f2058b3b2a3ab8c131914aba40f96db19f Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Mon, 7 Jan 2013 11:54:59 -0500 Subject: [PATCH] Fix incorrect error message when schema-CREATE permission is absent. Report by me. Fix by KaiGai Kohei. --- src/backend/commands/alter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.40.0