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 16, 2019
1 parent a734d6c commit 072d0c4
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 @@ -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);
Expand Down

0 comments on commit 072d0c4

Please sign in to comment.