mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.0 into 10.1
This commit is contained in:
@ -6967,7 +6967,10 @@ QUICK_SELECT_I *TRP_ROR_UNION::make_quick(PARAM *param,
|
||||
{
|
||||
if (!(quick= (*scan)->make_quick(param, FALSE, &quick_roru->alloc)) ||
|
||||
quick_roru->push_quick_back(quick))
|
||||
{
|
||||
delete quick_roru;
|
||||
DBUG_RETURN(NULL);
|
||||
}
|
||||
}
|
||||
quick_roru->records= records;
|
||||
quick_roru->read_time= read_cost;
|
||||
@ -10567,9 +10570,7 @@ QUICK_RANGE_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table,
|
||||
*/
|
||||
thd->mem_root= old_root;
|
||||
|
||||
if (!quick || create_err)
|
||||
return 0; /* no ranges found */
|
||||
if (quick->init())
|
||||
if (!quick || create_err || quick->init())
|
||||
goto err;
|
||||
quick->records= records;
|
||||
|
||||
|
Reference in New Issue
Block a user