mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
SQL: truncate syntax and privilege [closes #229]
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user