1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

abort storing query to query cache if warnings appeared (BUG#9414)

This commit is contained in:
bell@sanja.is.com.ua
2005-06-28 00:52:21 +03:00
parent ec35d6bfca
commit b49b5805eb
3 changed files with 56 additions and 0 deletions

View File

@ -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);