mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Backport 5.5=>5.1 Patch for Bug#13805127:
Stored program cache produces wrong result in same THD.
This commit is contained in:
@ -2361,6 +2361,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