mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Style: condition rewrite
This commit is contained in:
@ -607,9 +607,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
|||||||
if (table->versioned())
|
if (table->versioned())
|
||||||
{
|
{
|
||||||
bool row_is_alive= table->vers_end_field()->is_max();
|
bool row_is_alive= table->vers_end_field()->is_max();
|
||||||
if (truncate_history && row_is_alive)
|
if (truncate_history)
|
||||||
|
{
|
||||||
|
if (row_is_alive)
|
||||||
continue;
|
continue;
|
||||||
if (!truncate_history && !row_is_alive)
|
}
|
||||||
|
else if (!row_is_alive)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user