From 072d0c412fe463f071ec76699fe68bdde99d0a0b Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Tue, 15 Oct 2019 18:54:10 -0500 Subject: [PATCH] Fix lnext: Lists have been converted to arrays https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=1cff1b95ab6ddae32faa3efe0d95a820dbfdc164 --- odbc_fdw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/odbc_fdw.c b/odbc_fdw.c index 1dd14fb..6aaf0e4 100644 --- a/odbc_fdw.c +++ b/odbc_fdw.c @@ -2151,7 +2151,11 @@ odbcImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid) int option_count = 0; const char *prefix = empty_string_if_null(options.prefix); +#if PG_VERSION_NUM >= 130000 + table_columns_cell = lnext(table_columns, table_columns_cell); +#else table_columns_cell = lnext(table_columns_cell); +#endif initStringInfo(&create_statement); appendStringInfo(&create_statement, "CREATE FOREIGN TABLE \"%s\".\"%s%s\" (", stmt->local_schema, prefix, (char *) table_name);