Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

refactor: remove in-effective break (#3943)

piglig467d589a55d2
diff --git a/plugin/advisor/mysql/advisor_charset_allowlist.go b/plugin/advisor/mysql/advisor_charset_allowlist.go
index 3864502c9e..0c560787a0 100644
--- a/plugin/advisor/mysql/advisor_charset_allowlist.go
+++ b/plugin/advisor/mysql/advisor_charset_allowlist.go
@@ -133,7 +133,6 @@ func (checker *charsetAllowlistChecker) Enter(in ast.Node) (ast.Node, bool) {
if _, exist := checker.allowlist[charset]; charset != "" && !exist {
code = advisor.DisabledCharset
disabledCharset = charset
- break
}
}
}
diff --git a/plugin/advisor/mysql/advisor_collation_allowlist.go b/plugin/advisor/mysql/advisor_collation_allowlist.go
index 26ea377dd8..dc51bc82ec 100644
--- a/plugin/advisor/mysql/advisor_collation_allowlist.go
+++ b/plugin/advisor/mysql/advisor_collation_allowlist.go
@@ -133,7 +133,6 @@ func (checker *collationAllowlistChecker) Enter(in ast.Node) (ast.Node, bool) {
if _, exist := checker.allowlist[collation]; collation != "" && !exist {
code = advisor.DisabledCollation
disabledCollation = collation
- break
}
}
}