From b77a6d8a57ae68df3ecaf389fc8524d366ec7abe Mon Sep 17 00:00:00 2001 From: Chunzhu Li Date: Mon, 9 Nov 2020 07:14:19 -0600 Subject: [PATCH] hotfix the bug that -T can't work which is introduced from #194 (#195) * hotfix the bug that -T can't work which is introduced from #194 * use sameStringArray --- dumpling/v4/export/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpling/v4/export/config.go b/dumpling/v4/export/config.go index 3751e64d..b6b2b954 100644 --- a/dumpling/v4/export/config.go +++ b/dumpling/v4/export/config.go @@ -446,7 +446,7 @@ func ParseTableFilter(tablesList, filters []string) (filter.Filter, error) { } // only parse -T when -f is default value. otherwise bail out. - if len(filters) != 1 || filters[0] != "*.*" { + if !sameStringArray(filters, []string{"*.*", DefaultTableFilter}) { return nil, errors.New("cannot pass --tables-list and --filter together") }