Skip to content

Commit

Permalink
Fix build for v11.
Browse files Browse the repository at this point in the history
This was broken as it's not using the correct APIs for fetch
the tuple descriptor attributes.
  • Loading branch information
rblathia committed Sep 27, 2019
1 parent 272b293 commit 5eaa0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2038,7 +2038,7 @@ MongoAcquireSampleRows(Relation relation, int errorLevel,
for (columnId = 1; columnId <= columnCount; columnId++)
{
Var *column = (Var *) palloc0(sizeof(Var));
#if PG_VERSION_NUM >= 120000
#if PG_VERSION_NUM >= 110000
Form_pg_attribute attr = TupleDescAttr(tupleDescriptor, columnId-1);

column->varattno = columnId;
Expand Down

0 comments on commit 5eaa0bf

Please sign in to comment.