mirror of https://github.com/citusdata/citus.git
Fixes tests
parent
473f6cbf05
commit
a797584f1c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue