mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 19:55:32 +02:00
abort storing query to query cache if warnings appeared (BUG#9414)
This commit is contained in:
parent
ec35d6bfca
commit
b49b5805eb
3 changed files with 56 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue