Commit 3c63e2f8 authored by Monty's avatar Monty

Temporary table name used by multip-update has 'null' as part of the name

Problem was that TMP_TABLE_PARAM was not properly initialized
parent 6f65e082
...@@ -2431,7 +2431,8 @@ multi_update::initialize_tables(JOIN *join) ...@@ -2431,7 +2431,8 @@ multi_update::initialize_tables(JOIN *join)
group.direction= ORDER::ORDER_ASC; group.direction= ORDER::ORDER_ASC;
group.item= (Item**) temp_fields.head_ref(); group.item= (Item**) temp_fields.head_ref();
tmp_param->quick_group= 1; tmp_param->init();
tmp_param->tmp_name="update";
tmp_param->field_count= temp_fields.elements; tmp_param->field_count= temp_fields.elements;
tmp_param->func_count= temp_fields.elements - 1; tmp_param->func_count= temp_fields.elements - 1;
calc_group_buffer(tmp_param, &group); calc_group_buffer(tmp_param, &group);
......
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