mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup: simplify fill_record()
This commit is contained in:
@ -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++))
|
||||
{
|
||||
|
Reference in New Issue
Block a user