Commit 8ee071a2 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove redundant check

it's already checked before the update loop (see check_fields()),
and this condition cannot suddenly become false in the middle
of the statement
parent 826f615f
......@@ -8115,11 +8115,8 @@ fill_record(THD *thd, TABLE *table_arg, List<Item> &fields, List<Item> &values,
thus we safely can take table from the first field.
*/
fld= (Item_field*)f++;
if (!(field= fld->field_for_view_update()))
{
my_error(ER_NONUPDATEABLE_COLUMN, MYF(0), fld->name.str);
goto err;
}
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();
......
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