mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
Improve some messages
This commit is contained in:
@@ -167,8 +167,8 @@ policy_role_list_to_array(List *roles, int *num_roles)
|
||||
{
|
||||
ereport(WARNING,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("ignoring roles specified other than public"),
|
||||
errhint("All roles are members of the public role.")));
|
||||
errmsg("ignoring specified roles other than PUBLIC"),
|
||||
errhint("All roles are members of the PUBLIC role.")));
|
||||
*num_roles = 1;
|
||||
}
|
||||
role_oids[0] = ObjectIdGetDatum(ACL_ID_PUBLIC);
|
||||
|
@@ -959,7 +959,7 @@ DropRole(DropRoleStmt *stmt)
|
||||
if (rolspec->roletype != ROLESPEC_CSTRING)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("cannot use special role specifier in \"%s\"", "DROP ROLE")));
|
||||
errmsg("cannot use special role specifier in DROP ROLE")));
|
||||
role = rolspec->rolename;
|
||||
|
||||
tuple = SearchSysCache1(AUTHNAME, PointerGetDatum(role));
|
||||
|
Reference in New Issue
Block a user