mirror of
https://github.com/postgres/postgres.git
synced 2026-03-12 05:32:27 -04:00
Fix another warning, introduced by 846311051e.
Discussion: https://postgr.es/m/3703896.1710799495@sss.pgh.pa.us Reported-by: Tom Lane
This commit is contained in:
parent
846311051e
commit
60769c62dc
1 changed files with 3 additions and 3 deletions
|
|
@ -2505,13 +2505,13 @@ pg_strnxfrm_prefix(char *dest, size_t destsize, const char *src,
|
|||
int
|
||||
builtin_locale_encoding(const char *locale)
|
||||
{
|
||||
if (strcmp(locale, "C") == 0)
|
||||
return -1;
|
||||
else
|
||||
if (strcmp(locale, "C") != 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("invalid locale name \"%s\" for builtin provider",
|
||||
locale)));
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue