mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.2 merge.
two tests still fail: main.innodb_icp and main.range_vs_index_merge_innodb call records_in_range() with both range ends being open (which triggers an assert)
This commit is contained in:
@ -2454,6 +2454,14 @@ void reinit_stmt_before_use(THD *thd, LEX *lex)
|
||||
DBUG_ASSERT(sl->join == 0);
|
||||
ORDER *order;
|
||||
/* Fix GROUP list */
|
||||
if (sl->group_list_ptrs && sl->group_list_ptrs->size() > 0)
|
||||
{
|
||||
for (uint ix= 0; ix < sl->group_list_ptrs->size() - 1; ++ix)
|
||||
{
|
||||
order= sl->group_list_ptrs->at(ix);
|
||||
order->next= sl->group_list_ptrs->at(ix+1);
|
||||
}
|
||||
}
|
||||
for (order= sl->group_list.first; order; order= order->next)
|
||||
order->item= &order->item_ptr;
|
||||
/* Fix ORDER list */
|
||||
|
Reference in New Issue
Block a user