Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf02147b

Browse files
committed
Fix ICU locale option handling in CREATE DATABASE
The code took the LOCALE option as the default/fallback forICU_LOCALE, but this was neither documented nor intended, so removeit. (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 parentdfe2eb7 commitf02147b

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)

[8]ページ先頭

©2009-2025 Movatter.jp