mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Improve reporting of run-time-detected indeterminate-collation errors.
pg_newlocale_from_collation does not have enough context to give an error message that's even a little bit useful, so move the responsibility for complaining up to its callers. Also, reword ERRCODE_INDETERMINATE_COLLATION error messages in a less jargony, more message-style-guide-compliant fashion.
This commit is contained in:
@ -141,7 +141,7 @@ DefineCollation(List *names, List *parameters)
|
||||
|
||||
/* check that the locales can be loaded */
|
||||
CommandCounterIncrement();
|
||||
pg_newlocale_from_collation(newoid);
|
||||
(void) pg_newlocale_from_collation(newoid);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user