Skip to content

Commit

Permalink
Merge pull request #270 from actiontech/fix_bug_1
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
sjjian authored Jan 26, 2022
2 parents 86dd320 + b6ffe02 commit f7a9950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqle/driver/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (i *Inspect) Audit(ctx context.Context, sql string) (*driver.AuditResult, e
return nil, err
}

if !i.result.HasResult() {
if !i.result.HasResult() && i.cnf.dmlExplainPreCheckEnable {
if err = i.CheckExplain(nodes[0]); err != nil {
return nil, err
}
Expand Down

0 comments on commit f7a9950

Please sign in to comment.