Skip to content

Commit 842be06

Browse files
authored
Merge pull request #634 from kromiii/bugfix/prevent-duplicate-tables
Fix schema filter logic to prevent duplicated counts of tables
2 parents 9e7650c + fb6eb78 commit 842be06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schema/filter.go

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func (s *Schema) SepareteTablesThatAreIncludedOrNot(opt *FilterOption) (_ []*Tab
8181
for _, tt := range ts {
8282
if !lo.ContainsBy(includes, func(t *Table) bool {
8383
return tt.Name == t.Name
84+
}) && !lo.ContainsBy(includes2, func(t *Table) bool {
85+
return tt.Name == t.Name
8486
}) {
8587
includes2 = append(includes2, tt)
8688
}

0 commit comments

Comments
 (0)