From 2f37569ab79fd10e4422539236c2e1d81dfbc8b5 Mon Sep 17 00:00:00 2001 From: Geoff Montee Date: Tue, 25 Oct 2016 16:32:11 -0400 Subject: [PATCH] Issue #101: Fixed some more issues with 9.6. --- src/tds_fdw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tds_fdw.c b/src/tds_fdw.c index c80bf6e..1caa270 100644 --- a/src/tds_fdw.c +++ b/src/tds_fdw.c @@ -1839,7 +1839,6 @@ void tdsGetForeignRelSize(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntab dbclose(dbproc); dbloginfree(login); -cleanup_before_login: dbexit(); cleanup_before_init: @@ -1892,7 +1891,7 @@ void tdsGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntable add_path(baserel, (Path *) create_foreignscan_path(root, baserel, baserel->rows, startup_cost, total_cost, NIL, NULL, NIL)); -#if (PG_VERSION_NUM < 90600) +#elif (PG_VERSION_NUM < 90600) add_path(baserel, (Path *) create_foreignscan_path(root, baserel, baserel->rows, startup_cost, total_cost, NIL, NULL, NULL, NIL));