mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 11.0 into 11.1
This commit is contained in:
@ -249,7 +249,7 @@ static void prepare_record_for_error_message(int error, TABLE *table)
|
||||
Field *field;
|
||||
uint keynr;
|
||||
MY_BITMAP unique_map; /* Fields in offended unique. */
|
||||
my_bitmap_map unique_map_buf[bitmap_buffer_size(MAX_FIELDS)];
|
||||
my_bitmap_map unique_map_buf[bitmap_buffer_size(MAX_FIELDS)/sizeof(my_bitmap_map)];
|
||||
DBUG_ENTER("prepare_record_for_error_message");
|
||||
|
||||
/*
|
||||
@ -1870,6 +1870,10 @@ int multi_update::prepare(List<Item> ¬_used_values,
|
||||
{
|
||||
Item *value= value_it++;
|
||||
uint offset= item->field->table->pos_in_table_list->shared;
|
||||
|
||||
if (value->associate_with_target_field(thd, item))
|
||||
DBUG_RETURN(1);
|
||||
|
||||
fields_for_table[offset]->push_back(item, thd->mem_root);
|
||||
values_for_table[offset]->push_back(value, thd->mem_root);
|
||||
}
|
||||
@ -2369,7 +2373,7 @@ int multi_update::send_data(List<Item> ¬_used_values)
|
||||
tmp_table_param[offset].func_count);
|
||||
fill_record(thd, tmp_table,
|
||||
tmp_table->field + 1 + unupdated_check_opt_tables.elements,
|
||||
*values_for_table[offset], TRUE, FALSE);
|
||||
*values_for_table[offset], true, false, false);
|
||||
|
||||
/* Write row, ignoring duplicated updates to a row */
|
||||
error= tmp_table->file->ha_write_tmp_row(tmp_table->record[0]);
|
||||
|
Reference in New Issue
Block a user