Skip to content

Commit

Permalink
Misc, SQL: checks cleanup in Item_field::set_field()
Browse files Browse the repository at this point in the history
  • Loading branch information
midenok committed Jun 23, 2017
1 parent 07ff0e1 commit b44425c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sql/item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2763,9 +2763,8 @@ void Item_field::set_field(Field *field_par)
field->force_null= false;
if (field->flags & VERS_OPTIMIZED_UPDATE_FLAG && context &&
((field->table->pos_in_table_list &&
field->table->pos_in_table_list->vers_conditions.type != FOR_SYSTEM_TIME_UNSPECIFIED) ||
(context->select_lex &&
context->select_lex->vers_conditions.type != FOR_SYSTEM_TIME_UNSPECIFIED)))
field->table->pos_in_table_list->vers_conditions) ||
(context->select_lex && context->select_lex->vers_conditions)))
{
field->force_null= true;
push_warning_printf(
Expand Down

0 comments on commit b44425c

Please sign in to comment.