From ae559b57de34c17c46983159cf308156598fdeba Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 3 Feb 2021 22:46:59 +0800 Subject: [PATCH] fix dryrun configuration for package gdb --- database/gdb/gdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/gdb/gdb.go b/database/gdb/gdb.go index 8932517c2..8a49a6f25 100644 --- a/database/gdb/gdb.go +++ b/database/gdb/gdb.go @@ -490,7 +490,7 @@ func (c *Core) getSqlDb(master bool, schema ...string) (sqlDb *sql.DB, err error if node.Debug { c.DB.SetDebug(node.Debug) } - if node.Debug { + if node.DryRun { c.DB.SetDryRun(node.DryRun) } return