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)

mysql-test/r/query_cache.result:
  Query with warning prohibited to query cache
mysql-test/t/query_cache.test:
  Query with warning prohibited to query cache
sql/sql_error.cc:
  abort storing query to query cache if warnings appeared
This commit is contained in:
unknown
2005-06-28 00:52:21 +03:00
parent f3dd815156
commit e45709dfbd
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);