Skip to content

Commit

Permalink
Fix lnext: Lists have been converted to arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Oct 21, 2019
1 parent eb3734f commit b445cb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions odbc_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,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);
Expand Down

0 comments on commit b445cb2

Please sign in to comment.