summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 8dc6203ed86..2d56f66dac7 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -275,15 +275,8 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
// trx_sees() in InnoDB reads sys_trx_start
if (!table->versioned_by_sql()) {
- if (table_list->vers_conditions.type == FOR_SYSTEM_TIME_BETWEEN ||
- table_list->vers_conditions.type == FOR_SYSTEM_TIME_FROM_TO)
- {
- bitmap_set_bit(table->read_set, table->vers_start_field()->field_index);
- }
- else if (table_list->vers_conditions.type == FOR_SYSTEM_TIME_BEFORE)
- {
- bitmap_set_bit(table->read_set, table->vers_end_field()->field_index);
- }
+ DBUG_ASSERT(table_list->vers_conditions.type == FOR_SYSTEM_TIME_BEFORE);
+ bitmap_set_bit(table->read_set, table->vers_end_field()->field_index);
}
}