From 8659f7812831b436d35aa4380211d0ef8fcc7b15 Mon Sep 17 00:00:00 2001 From: liuhuanxg <1985054961@qq.com> Date: Wed, 28 Aug 2024 09:52:11 +0800 Subject: [PATCH] FIX:The problem of the ignoreTables parameter not taking effect in the go-mysqldump package --- 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 {