Commit 72ea538b authored by unknown's avatar unknown

A fix for the very nusty bug with when there are 2 or more fields

in GROUP BY , which fields can be NULL ....

parent 62b9426d
......@@ -3824,6 +3824,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
key_part_info->null_offset= (uint) (field->null_ptr -
(uchar*) table->record[0]);
group->field->move_field((char*) ++group->buff);
++group_buff;
}
else
group->field->move_field((char*) group_buff);
......
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