Skip to content

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

fix: row type transform (#11312)

boojackebf1cc43d794
diff --git a/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go b/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
index 6ab06bda6c..160bce4c96 100644
--- a/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
+++ b/backend/plugin/advisor/mysql/advisor_statement_select_full_table_scan.go
@@ -156,7 +156,11 @@ func hasTableFullScan(res []any) (bool, string, error) {
continue
}
if row[4] == "index" {
- if strings.Contains(row[11].(string), "Using where") || strings.Contains(row[11].(string), "Using index condition") {
+ extra, ok := row[11].(string)
+ if !ok {
+ return false, "", nil
+ }
+ if strings.Contains(extra, "Using where") || strings.Contains(extra, "Using index condition") {
continue
}
tables = append(tables, row[2].(string))