Commit dd8d719b authored by unknown's avatar unknown

improved bug fix


sql/sql_select.cc:
  somewhat improved bug fix
parent 80b1cd80
......@@ -555,10 +555,18 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
/* Change DISTINCT to GROUP BY */
select_distinct= 0;
no_order= !order;
if (order && skip_sort_order)
join.tmp_table_param.quick_group=0;
if (all_order_fields_used)
{
if (order && skip_sort_order)
{
/*
Force MySQL to read the table in sorted order to get result in
ORDER BY order.
*/
join.tmp_table_param.quick_group=0;
}
order=0;
}
join.group=1; // For end_write_group
}
else
......
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