summaryrefslogtreecommitdiff
path: root/sql/sql_audit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_audit.cc')
-rw-r--r--sql/sql_audit.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_audit.cc b/sql/sql_audit.cc
index d0a9f412a43..424738890b8 100644
--- a/sql/sql_audit.cc
+++ b/sql/sql_audit.cc
@@ -83,6 +83,10 @@ static void general_class_handler(THD *thd, uint event_subtype, va_list ap)
event.general_query_length= va_arg(ap, unsigned int);
event.general_charset= va_arg(ap, struct charset_info_st *);
event.general_rows= (unsigned long long) va_arg(ap, ha_rows);
+ event.general_sql_command= va_arg(ap, MYSQL_LEX_STRING);
+ event.general_host= va_arg(ap, MYSQL_LEX_STRING);
+ event.general_external_user= va_arg(ap, MYSQL_LEX_STRING);
+ event.general_ip= va_arg(ap, MYSQL_LEX_STRING);
event_class_dispatch(thd, MYSQL_AUDIT_GENERAL_CLASS, &event);
}