Skip to content

Commit

Permalink
Merge pull request #634 from kromiii/bugfix/prevent-duplicate-tables
Browse files Browse the repository at this point in the history
Fix schema filter logic to prevent duplicated counts of tables
  • Loading branch information
k1LoW authored Nov 15, 2024
2 parents 9e7650c + fb6eb78 commit 842be06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (s *Schema) SepareteTablesThatAreIncludedOrNot(opt *FilterOption) (_ []*Tab
for _, tt := range ts {
if !lo.ContainsBy(includes, func(t *Table) bool {
return tt.Name == t.Name
}) && !lo.ContainsBy(includes2, func(t *Table) bool {
return tt.Name == t.Name
}) {
includes2 = append(includes2, tt)
}
Expand Down

0 comments on commit 842be06

Please sign in to comment.