Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f02147b

Browse files
committed
Fix ICU locale option handling in CREATE DATABASE
The code took the LOCALE option as the default/fallback for ICU_LOCALE, but this was neither documented nor intended, so remove it. (It was probably left in from an earlier patch version.) Reported-by: Marina Polyakova <m.polyakova@postgrespro.ru> Discussion: https://www.postgresql.org/message-id/flat/f385ba25e7f8be427b8c582e5cca7d79%40postgrespro.ru#515a31c5429d6d37ad1d5c9d66962a1e
1 parent dfe2eb7 commit f02147b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/commands/dbcommands.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -911,11 +911,6 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
911911
ereport(ERROR,
912912
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
913913
errmsg("ICU locale cannot be specified unless locale provider is ICU")));
914-
if (dblocprovider == COLLPROVIDER_ICU && !dbiculocale)
915-
{
916-
if (dlocale && dlocale->arg)
917-
dbiculocale = defGetString(dlocale);
918-
}
919914
if (distemplate && distemplate->arg)
920915
dbistemplate = defGetBoolean(distemplate);
921916
if (dallowconnections && dallowconnections->arg)

0 commit comments

Comments
 (0)