mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Replace AclObjectKind with ObjectType
AclObjectKind was basically just another enumeration for object types, and we already have a preferred one for that. It's only used in aclcheck_error. By using ObjectType instead, we can also give some more precise error messages, for example "index" instead of "relation". Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -400,7 +400,7 @@ ProcedureCreate(const char *procedureName,
|
||||
errmsg("function \"%s\" already exists with same argument types",
|
||||
procedureName)));
|
||||
if (!pg_proc_ownercheck(HeapTupleGetOid(oldtup), proowner))
|
||||
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_PROC,
|
||||
aclcheck_error(ACLCHECK_NOT_OWNER, OBJECT_FUNCTION,
|
||||
procedureName);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user