mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Use DEFACLOBJ_ macros in error message instead of hardcoding
This commit is contained in:
parent
4e88fe8f8f
commit
b6966d4627
@ -1849,8 +1849,13 @@ get_object_address_defacl(List *object, bool missing_ok)
|
||||
default:
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("unrecognized default ACL object type %c", objtype),
|
||||
errhint("Valid object types are \"r\", \"S\", \"f\", \"T\" and \"s\".")));
|
||||
errmsg("unrecognized default ACL object type \"%c\"", objtype),
|
||||
errhint("Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
|
||||
DEFACLOBJ_RELATION,
|
||||
DEFACLOBJ_SEQUENCE,
|
||||
DEFACLOBJ_FUNCTION,
|
||||
DEFACLOBJ_TYPE,
|
||||
DEFACLOBJ_NAMESPACE)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -274,11 +274,11 @@ WARNING: error for user mapping,{addr_nsp,zwei},{integer}: user mapping for use
|
||||
WARNING: error for user mapping,{eins,zwei,drei},{}: argument list length must be exactly 1
|
||||
WARNING: error for user mapping,{eins,zwei,drei},{integer}: user mapping for user "eins" on server "integer" does not exist
|
||||
WARNING: error for default acl,{eins},{}: argument list length must be exactly 1
|
||||
WARNING: error for default acl,{eins},{integer}: unrecognized default ACL object type i
|
||||
WARNING: error for default acl,{eins},{integer}: unrecognized default ACL object type "i"
|
||||
WARNING: error for default acl,{addr_nsp,zwei},{}: argument list length must be exactly 1
|
||||
WARNING: error for default acl,{addr_nsp,zwei},{integer}: unrecognized default ACL object type i
|
||||
WARNING: error for default acl,{addr_nsp,zwei},{integer}: unrecognized default ACL object type "i"
|
||||
WARNING: error for default acl,{eins,zwei,drei},{}: argument list length must be exactly 1
|
||||
WARNING: error for default acl,{eins,zwei,drei},{integer}: unrecognized default ACL object type i
|
||||
WARNING: error for default acl,{eins,zwei,drei},{integer}: unrecognized default ACL object type "i"
|
||||
WARNING: error for transform,{eins},{}: argument list length must be exactly 1
|
||||
WARNING: error for transform,{eins},{integer}: type "eins" does not exist
|
||||
WARNING: error for transform,{addr_nsp,zwei},{}: name list length must be exactly 1
|
||||
|
Loading…
Reference in New Issue
Block a user