1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge test case of Bug#40264 to mysql-5.1-bugteam

This commit is contained in:
Davi Arnaut
2009-01-22 09:22:26 -02:00
3 changed files with 51 additions and 0 deletions

View File

@ -781,6 +781,9 @@ void query_cache_end_of_result(THD *thd)
if (thd->net.query_cache_query == 0)
DBUG_VOID_RETURN;
/* Ensure that only complete results are cached. */
DBUG_ASSERT(thd->main_da.is_eof());
if (thd->killed)
{
query_cache_abort(&thd->net);