diff options
| author | Peter Eisentraut | 2022-09-21 14:28:40 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2022-09-21 14:41:36 +0000 |
| commit | e59a67fb8fe1ac1408dc1858038f525a860d772b (patch) | |
| tree | f34a735089355d260e5ebd172bee34c0a27c7401 /src/bin/scripts | |
| parent | 2da8c4cff39328897aa716a0ba57bdada5aeaf6e (diff) | |
Improve ICU option handling in CREATE DATABASE
We check that the ICU locale is only specified if the ICU locale
provider is selected. But we did that too early. We need to wait
until we load the settings of the template database, since that could
also set what the locale provider is.
Reported-by: Marina Polyakova <m.polyakova@postgrespro.ru>
Discussion: https://www.postgresql.org/message-id/9ba4cd1ea6ed6b7b15c0ff15e6f540cd@postgrespro.ru
Diffstat (limited to 'src/bin/scripts')
| -rw-r--r-- | src/bin/scripts/t/020_createdb.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl index b87d8fc63b5..8ed8628db11 100644 --- a/src/bin/scripts/t/020_createdb.pl +++ b/src/bin/scripts/t/020_createdb.pl @@ -71,6 +71,10 @@ if ($ENV{with_icu} eq 'yes') $node2->command_ok( [ 'createdb', '-T', 'template0', '--locale-provider=libc', 'foobar55' ], 'create database with libc provider from template database with icu provider'); + + $node2->command_ok( + [ 'createdb', '-T', 'template0', '--icu-locale', 'en-US', 'foobar56' ], + 'create database with icu locale from template database with icu provider'); } else { |
