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
@ -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…
x
Reference in New Issue
Block a user