提交 a5cb33b9 编写于 作者: martianzhang's avatar martianzhang

issue #282 where use online-dsn ERR.000 always have

	check suggest.Content != ""
上级 9a47ddc1
......@@ -1517,7 +1517,7 @@ func formatJSON(sql string, db string, suggest map[string]Rule) string {
}
score = score - l*5
// ## MySQL execute failed
if strings.HasPrefix(item, "ERR") {
if strings.HasPrefix(item, "ERR") && suggest[item].Content != "" {
score = 0
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册