diff --git a/cmd/mo-dump/main.go b/cmd/mo-dump/main.go index 3052122..91dcece 100644 --- a/cmd/mo-dump/main.go +++ b/cmd/mo-dump/main.go @@ -119,6 +119,9 @@ func main() { } } } + if opt.tables == nil { + opt.emptyTables = true + } //replace : in username to #, because : is used as separator in dsn. //password can have ":". @@ -149,9 +152,6 @@ func main() { if err != nil { return } - if opt.tables == nil { - opt.emptyTables = true - } } err = opt.dumpData(ctx)