Fix incorrect error message when schema-CREATE permission is absent.

Report by me.  Fix by KaiGai Kohei.
This commit is contained in:
Robert Haas 2013-01-07 11:54:59 -05:00
parent cf03ff6c4e
commit a0dc23f205
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}