Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: ineffective break statement (#13453)
h3n4l59e8e10f9f87
diff --git a/backend/plugin/advisor/mysql/advisor_use_innodb.go b/backend/plugin/advisor/mysql/advisor_use_innodb.goindex 0bf9a7049a..dc1bf2c4f6 100644--- a/backend/plugin/advisor/mysql/advisor_use_innodb.go+++ b/backend/plugin/advisor/mysql/advisor_use_innodb.go@@ -101,8 +101,7 @@ func (c *useInnoDBChecker) EnterAlterTable(ctx *mysql.AlterTableContext) {code := advisor.Okfor _, option := range ctx.AlterTableActions().AlterCommandList().AlterList().AllCreateTableOptionsSpaceSeparated() {for _, op := range option.AllCreateTableOption() {- switch {- case op.ENGINE_SYMBOL() != nil:+ if op.ENGINE_SYMBOL() != nil {if op.EngineRef() == nil {continue}@@ -111,7 +110,6 @@ func (c *useInnoDBChecker) EnterAlterTable(ctx *mysql.AlterTableContext) {code = advisor.NotInnoDBEnginebreak}- default:}}}