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

Commit0669790

Browse files
committed
Don't copy datlocale from template unless provider matches.
During CREATE DATABASE, if changing the locale provider, require thata new locale is specified rather than trying to reinterpret thetemplate's locale using the new provider.This only affects the behavior when the template uses the builtinprovider and CREATE DATABASE specifies the ICU provider withoutspecifying the locale. Previously, that may have succeeded due toloose validation by ICU, whereas now that will cause an error. Becauseit can cause an error, backport only to unreleased versions.Discussion:https://postgr.es/m/5038b33a6dc639009f4b3d43fa6ae0c5ba9e04f7.camel@j-davis.comBackpatch-through: 18
1 parente5d04ae commit0669790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/dbcommands.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
10521052
dbctype=src_ctype;
10531053
if (dblocprovider=='\0')
10541054
dblocprovider=src_locprovider;
1055-
if (dblocale==NULL)
1055+
if (dblocale==NULL&&dblocprovider==src_locprovider)
10561056
dblocale=src_locale;
10571057
if (dbicurules==NULL)
10581058
dbicurules=src_icurules;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp