Fix locale options checking in CREATE DATABASE.

Discussion: https://postgr.es/m/4ea13583-7305-40b0-8525-58381533e2b1@eisentraut.org
Reported-by: Peter Eisentraut
This commit is contained in:
Jeff Davis 2024-04-30 17:08:49 -07:00
parent d12b4ba1bd
commit 7562a9bd71
1 changed files with 2 additions and 1 deletions

View File

@ -1073,7 +1073,8 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
errmsg("BUILTIN_LOCALE cannot be specified unless locale provider is builtin")));
}
else if (dblocprovider != COLLPROVIDER_ICU)
if (dblocprovider != COLLPROVIDER_ICU)
{
if (diculocale)
ereport(ERROR,