Fixes compile error for PG 14

create_drop_db_gh
gindibay 2023-10-09 15:56:05 +03:00
parent 7022344870
commit 45103629dc
1 changed files with 2 additions and 0 deletions

View File

@ -35,11 +35,13 @@ handleOption(StringInfo buf, DefElem *option, const struct option_format *opt_fo
bool value = defGetBoolean(option);
appendStringInfo(buf, opt_formats[i].format, value ? "true" : "false");
}
#if PG_VERSION_NUM >= PG_VERSION_15
else if (strcmp(opt_formats[i].type, "object_id") == 0)
{
Oid value = defGetObjectId(option);
appendStringInfo(buf, opt_formats[i].format, value );
}
#endif
else if (strcmp(opt_formats[i].type, "literal_cstr") == 0)
{
char *value = defGetString(option);