From b08830b072b425871d858e3f4e52d1d80355da8e Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Mon, 14 Oct 2019 16:48:32 -0500 Subject: [PATCH] Keep up with PG12 refactoring --- odbc_fdw.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/odbc_fdw.c b/odbc_fdw.c index 88901bb..ee5e6b1 100644 --- a/odbc_fdw.c +++ b/odbc_fdw.c @@ -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 @@ -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); }