Commit 359b0e59 authored by unknown's avatar unknown

bug #27531:

 fixed coverage of out-of-mem errors

parent 7539cb43
...@@ -1787,7 +1787,7 @@ int subselect_single_select_engine::exec() ...@@ -1787,7 +1787,7 @@ int subselect_single_select_engine::exec()
select_lex->uncacheable|= UNCACHEABLE_EXPLAIN; select_lex->uncacheable|= UNCACHEABLE_EXPLAIN;
select_lex->master_unit()->uncacheable|= UNCACHEABLE_EXPLAIN; select_lex->master_unit()->uncacheable|= UNCACHEABLE_EXPLAIN;
if (join->init_save_join_tab()) if (join->init_save_join_tab())
DBUG_RETURN(1); DBUG_RETURN(1); /* purecov: inspected */
} }
if (item->engine_changed) if (item->engine_changed)
{ {
......
...@@ -1432,7 +1432,7 @@ JOIN::optimize() ...@@ -1432,7 +1432,7 @@ JOIN::optimize()
*/ */
if (select_lex->uncacheable && !is_top_level_join() && if (select_lex->uncacheable && !is_top_level_join() &&
init_save_join_tab()) init_save_join_tab())
DBUG_RETURN(-1); DBUG_RETURN(-1); /* purecov: inspected */
} }
error= 0; error= 0;
...@@ -1509,7 +1509,7 @@ bool ...@@ -1509,7 +1509,7 @@ bool
JOIN::init_save_join_tab() JOIN::init_save_join_tab()
{ {
if (!(tmp_join= (JOIN*)thd->alloc(sizeof(JOIN)))) if (!(tmp_join= (JOIN*)thd->alloc(sizeof(JOIN))))
return 1; return 1; /* purecov: inspected */
error= 0; // Ensure that tmp_join.error= 0 error= 0; // Ensure that tmp_join.error= 0
restore_tmp(); restore_tmp();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment