Skip to content

Commit 7562a9b

Browse files
committed
Fix locale options checking in CREATE DATABASE.
Discussion: https://postgr.es/m/[email protected] Reported-by: Peter Eisentraut
1 parent d12b4ba commit 7562a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/commands/dbcommands.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,8 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
10731073
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
10741074
errmsg("BUILTIN_LOCALE cannot be specified unless locale provider is builtin")));
10751075
}
1076-
else if (dblocprovider != COLLPROVIDER_ICU)
1076+
1077+
if (dblocprovider != COLLPROVIDER_ICU)
10771078
{
10781079
if (diculocale)
10791080
ereport(ERROR,

0 commit comments

Comments
 (0)