mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
A fix for the very nusty bug with when there are 2 or more fields
in GROUP BY , which fields can be NULL ....
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user