Commit 7fa88d44 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: simplify fill_record()

parent 34857b91
......@@ -8101,18 +8101,7 @@ fill_record(THD *thd, TABLE *table_arg, List<Item> &fields, List<Item> &values,
only one row.
*/
if (fields.elements)
{
/*
On INSERT or UPDATE fields are checked to be from the same table,
thus we safely can take table from the first field.
*/
fld= (Item_field*)f++;
field= fld->field_for_view_update();
DBUG_ASSERT(field);
DBUG_ASSERT(field->field->table == table_arg);
table_arg->auto_increment_field_not_null= FALSE;
f.rewind();
}
while ((fld= f++))
{
......
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