]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect error message when schema-CREATE permission is absent.
authorRobert Haas <rhaas@postgresql.org>
Mon, 7 Jan 2013 16:54:59 +0000 (11:54 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 7 Jan 2013 16:54:59 +0000 (11:54 -0500)
Report by me.  Fix by KaiGai Kohei.

src/backend/commands/alter.c

index f6287542b32b486a7a065bebe09c2f3b57c870e8..73138f940aed032f256925e1c6caa14f33ec84c7 100644 (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));
                        }
                }