mirror of https://github.com/citusdata/citus.git
Fixes compile error for PG 14
parent
7022344870
commit
45103629dc
|
@ -35,11 +35,13 @@ handleOption(StringInfo buf, DefElem *option, const struct option_format *opt_fo
|
||||||
bool value = defGetBoolean(option);
|
bool value = defGetBoolean(option);
|
||||||
appendStringInfo(buf, opt_formats[i].format, value ? "true" : "false");
|
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)
|
else if (strcmp(opt_formats[i].type, "object_id") == 0)
|
||||||
{
|
{
|
||||||
Oid value = defGetObjectId(option);
|
Oid value = defGetObjectId(option);
|
||||||
appendStringInfo(buf, opt_formats[i].format, value );
|
appendStringInfo(buf, opt_formats[i].format, value );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else if (strcmp(opt_formats[i].type, "literal_cstr") == 0)
|
else if (strcmp(opt_formats[i].type, "literal_cstr") == 0)
|
||||||
{
|
{
|
||||||
char *value = defGetString(option);
|
char *value = defGetString(option);
|
||||||
|
|
Loading…
Reference in New Issue