Skip to content

Commit

Permalink
Style: condition rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and midenok committed May 5, 2017
1 parent e7ac369 commit 5853266
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sql/sql_delete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
if (table->versioned())
{
bool row_is_alive= table->vers_end_field()->is_max();
if (truncate_history && row_is_alive)
continue;
if (!truncate_history && !row_is_alive)
if (truncate_history)
{
if (row_is_alive)
continue;
}
else if (!row_is_alive)
continue;
}

Expand Down

0 comments on commit 5853266

Please sign in to comment.