summaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorJeff Davis2024-05-01 00:08:49 +0000
committerJeff Davis2024-05-01 00:32:03 +0000
commit7562a9bd7100702ce7878a17f4aaac1df08a8e09 (patch)
tree42bcc049b63439f24333c91bc1c036b72a5e9cdc /src/backend/commands/dbcommands.c
parentd12b4ba1bd3eedd862064cf1dad5ff107c5cba90 (diff)
Fix locale options checking in CREATE DATABASE.
Discussion: https://postgr.es/m/[email protected] Reported-by: Peter Eisentraut
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r--src/backend/commands/dbcommands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index cd06d1270c5..be629ea92cf 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -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,