summaryrefslogtreecommitdiff
path: root/sql/sql_audit.cc
diff options
context:
space:
mode:
authorAshish Agarwal <ashish.y.agarwal@oracle.com>2013-07-02 11:58:39 +0530
committerAshish Agarwal <ashish.y.agarwal@oracle.com>2013-07-02 11:58:39 +0530
commitf5b5e6b951eabe6d6add84fa915d305a4a95cddf (patch)
treee923a916e758c6cde635765b285649506d0fe00a /sql/sql_audit.cc
parent3ee4a82fd1b3f886c027f0144bdce260b721c5a1 (diff)
downloadmariadb-git-f5b5e6b951eabe6d6add84fa915d305a4a95cddf.tar.gz
WL#7076: Backporting wl6715 to support both formats in 5.5, 5.6, 5.7
Backporting wl6715 to mysql-5.5
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);
}