Skip to content

Commit d86b0a6

Browse files
committed
WL#8891: Audit Log: Abort SQL queries on rule based condition
1 parent 042190a commit d86b0a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/sql_audit.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ int mysql_audit_notify(THD *thd, mysql_event_general_subclass_t subclass,
450450
event.general_command.str= msg;
451451
event.general_command.length= msg_len;
452452

453-
if (subclass == MYSQL_AUDIT_GENERAL_ERROR)
453+
if (subclass == MYSQL_AUDIT_GENERAL_ERROR ||
454+
subclass == MYSQL_AUDIT_GENERAL_STATUS)
454455
{
455456
Ignore_event_error_handler handler(thd, subclass_name);
456457

0 commit comments

Comments
 (0)