Skip to content

Commit

Permalink
fix ai rules mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
BugsGuru committed Jan 24, 2025
1 parent 7e11e74 commit 95dd379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqle/driver/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ func (i *MysqlDriverImpl) audit(ctx context.Context, sql string) (*driverV2.Audi

handler, ok := rulepkg.RuleHandlerMap[rule.Name]
if !ok || handler.Func == nil {
continue
handler, ok = rulepkg.AIRuleHandlerMap[rule.Name]
if !ok || handler.Func == nil {
continue
}
}
if i.IsOfflineAudit() && !handler.IsAllowOfflineRule(nodes[0]) {
continue
Expand Down

0 comments on commit 95dd379

Please sign in to comment.