mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
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),
|
||||
errmsg("BUILTIN_LOCALE cannot be specified unless locale provider is builtin")));
|
||||
}
|
||||
else if (dblocprovider != COLLPROVIDER_ICU)
|
||||
|
||||
if (dblocprovider != COLLPROVIDER_ICU)
|
||||
{
|
||||
if (diculocale)
|
||||
ereport(ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user