diff options
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r-- | sql/sql_error.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc index a31e15d0745..b24d15b6e3b 100644 --- a/sql/sql_error.cc +++ b/sql/sql_error.cc @@ -108,6 +108,8 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, if (level == MYSQL_ERROR::WARN_LEVEL_NOTE && !(thd->options & OPTION_SQL_NOTES)) return(0); + query_cache_abort(&thd->net); + if (thd->query_id != thd->warn_id) mysql_reset_errors(thd); |