Skip to content

Commit

Permalink
0003689: Excluded columns that are part of a foreign key the foreign key
Browse files Browse the repository at this point in the history
remains in table object
  • Loading branch information
jumpmind-josh committed Sep 6, 2018
1 parent 858b138 commit 208106c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ public Table copyAndFilterColumns(String[] orderedColumnNames, String[] pkColumn
Set<String> columnsSet = new HashSet<String>(Arrays.asList(orderedColumnNames));
for (ForeignKey fk : table.getForeignKeys()) {
for (Reference ref : fk.getReferences()) {
if (ref != null && ref.getLocalColumn() != null && columnsSet.contains(ref.getLocalColumnName())) {
if (ref != null && ref.getLocalColumnName() != null && columnsSet.contains(ref.getLocalColumnName())) {
foreignKeys.add(fk);
}
}
Expand Down

0 comments on commit 208106c

Please sign in to comment.