mirror of https://github.com/citusdata/citus.git
Introduces F_NEXTVAL_COMPAT macro
Name of F_NEXTVAL_OID is changed to F_NEXTVAL Relevant PG commit: 8e1f37c07aafd4bb7aa6e1e1982010af11f8b5c7pull/5209/head
parent
f933d2a57a
commit
b790ecf180
|
@ -1020,7 +1020,7 @@ contain_nextval_expression_walker(Node *node, void *context)
|
||||||
{
|
{
|
||||||
FuncExpr *funcExpr = (FuncExpr *) node;
|
FuncExpr *funcExpr = (FuncExpr *) node;
|
||||||
|
|
||||||
if (funcExpr->funcid == F_NEXTVAL_OID)
|
if (funcExpr->funcid == F_NEXTVAL)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,10 @@
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_14
|
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||||
#define AlterTableStmtObjType(a) ((a)->objtype)
|
#define AlterTableStmtObjType(a) ((a)->objtype)
|
||||||
|
#define F_NEXTVAL_COMPAT F_NEXTVAL
|
||||||
#else
|
#else
|
||||||
#define AlterTableStmtObjType(a) ((a)->relkind)
|
#define AlterTableStmtObjType(a) ((a)->relkind)
|
||||||
|
#define F_NEXTVAL_COMPAT F_NEXTVAL_OID
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_13
|
#if PG_VERSION_NUM >= PG_VERSION_13
|
||||||
|
|
Loading…
Reference in New Issue