projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
701ac2c
)
Fix ICU locale option handling in CREATE DATABASE
author
Peter Eisentraut
<
[email protected]
>
Wed, 24 Aug 2022 11:27:34 +0000
(13:27 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Wed, 24 Aug 2022 11:27:34 +0000
(13:27 +0200)
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 <
[email protected]
>
Discussion: https://www.postgresql.org/message-id/flat/
f385ba25e7f8be427b8c582e5cca7d79
%40postgrespro.ru#
515a31c5429d6d37ad1d5c9d66962a1e
src/backend/commands/dbcommands.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/dbcommands.c
b/src/backend/commands/dbcommands.c
index 883f381f3453142790f728a3725586cebe2e2f20..6ff48bb18f3639ae45d9528b32df51a4aebc60c0 100644
(file)
--- a/
src/backend/commands/dbcommands.c
+++ b/
src/backend/commands/dbcommands.c
@@
-912,11
+912,6
@@
createdb(ParseState *pstate, const CreatedbStmt *stmt)
ereport(ERROR,
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
errmsg("ICU locale cannot be specified unless locale provider is ICU")));
- if (dblocprovider == COLLPROVIDER_ICU && !dbiculocale)
- {
- if (dlocale && dlocale->arg)
- dbiculocale = defGetString(dlocale);
- }
if (distemplate && distemplate->arg)
dbistemplate = defGetBoolean(distemplate);
if (dallowconnections && dallowconnections->arg)