mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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
This commit is contained in:
@@ -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.
|
thus we safely can take table from the first field.
|
||||||
*/
|
*/
|
||||||
fld= (Item_field*)f++;
|
fld= (Item_field*)f++;
|
||||||
if (!(field= fld->field_for_view_update()))
|
field= fld->field_for_view_update();
|
||||||
{
|
DBUG_ASSERT(field);
|
||||||
my_error(ER_NONUPDATEABLE_COLUMN, MYF(0), fld->name.str);
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
DBUG_ASSERT(field->field->table == table_arg);
|
DBUG_ASSERT(field->field->table == table_arg);
|
||||||
table_arg->auto_increment_field_not_null= FALSE;
|
table_arg->auto_increment_field_not_null= FALSE;
|
||||||
f.rewind();
|
f.rewind();
|
||||||
|
Reference in New Issue
Block a user