mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-22424 Server crashes in handler::check_duplicate_long_entry_key or Assertion `inited == NONE || lookup_handler != this' failed upon DELETE FOR PORTION on table with long unique key
even if we're *allowed to* convert DELETE .. FOR PERIOD OF into an update internally, doesn't think we'll *be able to*. We always have to prepare for insert.
This commit is contained in:
@ -753,8 +753,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
||||
&& !table->versioned()
|
||||
&& table->file->has_transactions();
|
||||
|
||||
if (table->versioned(VERS_TIMESTAMP) ||
|
||||
(table_list->has_period() && !portion_of_time_through_update))
|
||||
if (table->versioned(VERS_TIMESTAMP) || (table_list->has_period()))
|
||||
table->file->prepare_for_insert(1);
|
||||
DBUG_ASSERT(table->file->inited != handler::NONE);
|
||||
|
||||
|
Reference in New Issue
Block a user