Introduces F_NEXTVAL_COMPAT macro

Name of F_NEXTVAL_OID is changed to F_NEXTVAL

Relevant PG commit:
8e1f37c07aafd4bb7aa6e1e1982010af11f8b5c7
pull/5209/head
Halil Ozan Akgul 2021-08-11 15:20:22 +03:00 committed by Sait Talha Nisanci
parent f933d2a57a
commit b790ecf180
2 changed files with 3 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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