summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2014-01-23 22:21:02 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2014-01-23 22:21:02 +0400
commit8f3e1bfc92f725813a6c82f9be2a601c9701d712 (patch)
tree5900015b4cde3c447663c9255c2116efd39f2f4e /sql/sql_class.cc
parenteb88c905e68ee5d3ac0b5decc083de9e06c4eb0b (diff)
downloadmariadb-git-8f3e1bfc92f725813a6c82f9be2a601c9701d712.tar.gz
MDEV-5419 no audit events for warnings converted to errors in the strict mode.
Plugins get error notifications only when my_message_sql() is called. But errors are launched with THD::raise_condition() calls in other places. These are push_warning(), implementations of SIGNAL and RESIGNAL commands. So it makes sence to notify plugins there in THD::raise_condition().
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index f68facb5d14..732840c8d8d 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -1145,6 +1145,7 @@ MYSQL_ERROR* THD::raise_condition(uint sql_errno,
got_warning= 1;
break;
case MYSQL_ERROR::WARN_LEVEL_ERROR:
+ mysql_audit_general(this, MYSQL_AUDIT_GENERAL_ERROR, sql_errno, msg);
break;
default:
DBUG_ASSERT(FALSE);