Skip to content

Commit

Permalink
Update to reflect changes in PostgreSQL headers (9.5 compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjthiessen committed Jun 26, 2015
1 parent b158c93 commit 5f8e57c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions mysql_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,11 +942,15 @@ mysqlGetForeignPlan(PlannerInfo *root,RelOptInfo *baserel, Oid foreigntableid, F
* field of the finished plan node; we can't keep them in private state
* because then they wouldn't be subject to later planner processing.
*/
return make_foreignscan(tlist,
local_exprs,
scan_relid,
params_list,
fdw_private);
return make_foreignscan(tlist
,local_exprs
,scan_relid
,params_list
,fdw_private
#if PG_VERSION_NUM >= 90500
,NIL
#endif
);
}

/*
Expand Down Expand Up @@ -1070,7 +1074,11 @@ mysqlPlanForeignModify(PlannerInfo *root,
}
else if (operation == CMD_UPDATE)
{
#if PG_VERSION_NUM >= 90500
Bitmapset *tmpset = bms_copy(rte->updatedCols);
#else
Bitmapset *tmpset = bms_copy(rte->modifiedCols);
#endif
AttrNumber col;

while ((col = bms_first_member(tmpset)) >= 0)
Expand Down

0 comments on commit 5f8e57c

Please sign in to comment.