a small fix for a distinct query

parent f7f940fc
...@@ -640,8 +640,8 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds, ...@@ -640,8 +640,8 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
DBUG_PRINT("info",("Creating tmp table")); DBUG_PRINT("info",("Creating tmp table"));
thd->proc_info="Creating tmp table"; thd->proc_info="Creating tmp table";
join.tmp_table_param.hidden_field_count=(all_fields.elements- join.tmp_table_param.hidden_field_count=
fields.elements); (all_fields.elements > fields.elements) ? (all_fields.elements- fields.elements) : 0;
if (!(tmp_table = if (!(tmp_table =
create_tmp_table(thd,&join.tmp_table_param,all_fields, create_tmp_table(thd,&join.tmp_table_param,all_fields,
((!simple_group && !procedure && ((!simple_group && !procedure &&
......
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