Fix locale options checking in CREATE DATABASE.
authorJeff Davis <jdavis@postgresql.org>
Wed, 1 May 2024 00:08:49 +0000 (17:08 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 1 May 2024 00:32:03 +0000 (17:32 -0700)
Discussion: https://postgr.es/m/4ea13583-7305-40b0-8525-58381533e2b1@eisentraut.org
Reported-by: Peter Eisentraut
src/backend/commands/dbcommands.c

index cd06d1270c5e121715d87f988213790e8ea193e8..be629ea92cf8d58560eb80c3411c3afe9db54598 100644 (file)
@@ -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,