diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 61a7db5e3b5..dcb1e46caa9 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -5391,11 +5391,9 @@ static void update_field_dependencies(THD *thd, Field *field, TABLE *table) } DBUG_VOID_RETURN; } - if (table->get_fields_in_item_tree) - field->flags|= GET_FIXED_FIELDS_FLAG; table->used_fields++; } - else if (table->get_fields_in_item_tree) + if (table->get_fields_in_item_tree) field->flags|= GET_FIXED_FIELDS_FLAG; DBUG_VOID_RETURN; }