Skip to content

Commit

Permalink
Exclude remote tables from the lists of insertion/deletion ordered ta…
Browse files Browse the repository at this point in the history
…bles because there's not much we can do with them (other than cause confusion)
  • Loading branch information
johncurrier committed Oct 1, 2008
1 parent faa46da commit da5506d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/net/sourceforge/schemaspy/SchemaSpy.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ public List<Table> sortTablesByRI(Collection<ForeignKeyConstraint> recursiveCons
// first pass to gather the 'low hanging fruit'
for (Iterator<Table> iter = remainingTables.iterator(); iter.hasNext(); ) {
Table table = iter.next();
if (table.isLeaf() && table.isRoot()) {
if (table.isRemote()) {
// ignore remote tables since there's no way to deal with them
table.unlinkParents();
table.unlinkChildren();
iter.remove();
} else if (table.isLeaf() && table.isRoot()) {
// floater, so add it to 'unattached'
unattached.add(table);
iter.remove();
}
Expand Down

0 comments on commit da5506d

Please sign in to comment.