Fixes tests

pull/7240/head
gindibay 2023-10-27 09:07:19 +03:00
parent 473f6cbf05
commit a797584f1c
2 changed files with 27 additions and 17 deletions

View File

@ -545,17 +545,26 @@ FreeDatabaseCollationInfo(DatabaseCollationInfo collInfo)
}
static char *get_locale_provider_string(char datlocprovider)
static char *
get_locale_provider_string(char datlocprovider)
{
switch (datlocprovider)
{
case 'c':
{
return "libc";
}
case 'i':
{
return "icu";
}
case 'l':
{
return "locale";
}
default:
return "";
}
@ -605,7 +614,8 @@ GenerateCreateDatabaseStatementFromPgDatabase(Form_pg_database databaseForm)
if (databaseForm->datlocprovider != 0)
{
appendStringInfo(&str, " LOCALE_PROVIDER = '%s'", get_locale_provider_string(databaseForm->datlocprovider));
appendStringInfo(&str, " LOCALE_PROVIDER = '%s'", get_locale_provider_string(
databaseForm->datlocprovider));
}
if (collInfo.collversion != NULL)

View File

@ -10,10 +10,10 @@ CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace
create user create_drop_db_test_user;
set citus.enable_create_database_propagation=on;
CREATE DATABASE mydatabase
WITH TEMPLATE = 'template0'
OWNER = create_drop_db_test_user
CONNECTION LIMIT = 10
WITH OWNER = create_drop_db_test_user
TEMPLATE = 'template0'
ENCODING = 'UTF8'
CONNECTION LIMIT = 10
LC_COLLATE = 'C'
LC_CTYPE = 'C'
TABLESPACE = create_drop_db_tablespace