From d67df9150e440ac99c8cba931e5076fa62bc7a7b Mon Sep 17 00:00:00 2001 From: liuhuanxg <45617105+liuhuanxg@users.noreply.github.com> Date: Mon, 2 Sep 2024 09:06:10 +0800 Subject: [PATCH] FIX:The problem of the ignoreTables parameter not taking effect in the go-mysqldump package (#910) Co-authored-by: lance6716 --- cmd/go-mysqldump/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/go-mysqldump/main.go b/cmd/go-mysqldump/main.go index 7606bc92a..b49f0c1ef 100644 --- a/cmd/go-mysqldump/main.go +++ b/cmd/go-mysqldump/main.go @@ -33,7 +33,7 @@ func main() { os.Exit(1) } - if len(*ignoreTables) == 0 { + if len(*ignoreTables) > 0 { subs := strings.Split(*ignoreTables, ",") for _, sub := range subs { if seps := strings.Split(sub, "."); len(seps) == 2 {