1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

a small fix for a distinct query

This commit is contained in:
unknown
2002-09-03 21:31:08 +03:00
parent 2c121b068c
commit af6a7eebe4

View File

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