Fix locale options checking in CREATE DATABASE.
Discussion: https://postgr.es/m/4ea13583-7305-40b0-8525-58381533e2b1@eisentraut.org Reported-by: Peter Eisentraut
This commit is contained in:
parent
d12b4ba1bd
commit
7562a9bd71
|
@ -1073,7 +1073,8 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
|
||||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||||
errmsg("BUILTIN_LOCALE cannot be specified unless locale provider is builtin")));
|
errmsg("BUILTIN_LOCALE cannot be specified unless locale provider is builtin")));
|
||||||
}
|
}
|
||||||
else if (dblocprovider != COLLPROVIDER_ICU)
|
|
||||||
|
if (dblocprovider != COLLPROVIDER_ICU)
|
||||||
{
|
{
|
||||||
if (diculocale)
|
if (diculocale)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
|
|
Loading…
Reference in New Issue