pull/7240/head
Onur Tirtir 2023-11-13 13:42:11 +03:00
parent ffa1fa0963
commit 1a80181a9c
1 changed files with 6 additions and 6 deletions

View File

@ -271,14 +271,14 @@ ValidateCreateDatabaseOptions(DefElem *option)
if (strcmp(option->defname, "template") == 0 && strcmp(optionValue, "template1") != 0) if (strcmp(option->defname, "template") == 0 && strcmp(optionValue, "template1") != 0)
{ {
ereport(ERROR, errmsg("Only template1 is supported as template " ereport(ERROR, errmsg("Only template1 is supported as template "
"parameter for CREATE DATABASE")); "parameter for CREATE DATABASE"));
} }
if (strcmp(option->defname, "strategy") == 0 && strcmp(optionValue, "wal_log") != 0) if (strcmp(option->defname, "strategy") == 0 && strcmp(optionValue, "wal_log") != 0)
{ {
ereport(ERROR, errmsg("Only wal_log is supported as strategy " ereport(ERROR, errmsg("Only wal_log is supported as strategy "
"parameter for CREATE DATABASE")); "parameter for CREATE DATABASE"));
} }
} }