Skip to content

Commit

Permalink
Keep up with PG12 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Oct 14, 2019
1 parent c3b2578 commit b08830b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions odbc_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

#include "access/tupdesc.h"

#if PG_VERSION_NUM >= 120000
#include "access/table.h"
#endif

#if defined(_WIN32)
#define strcasecmp _stricmp
#endif
Expand Down Expand Up @@ -1759,7 +1763,11 @@ odbcIterateForeignScan(ForeignScanState *node)
}

tuple = BuildTupleFromCStrings(festate->attinmeta, values);
#if PG_VERSION_NUM >= 120000
ExecStoreHeapTuple(tuple, slot, false);
#else
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
#endif
pfree(values);
}

Expand Down

0 comments on commit b08830b

Please sign in to comment.