mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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:
@@ -368,3 +368,7 @@ drop procedure sp;
|
||||
drop table t,t2,t3,log_tbl;
|
||||
drop view v;
|
||||
drop procedure log;
|
||||
create table t1 (pk int, s date, e date, period for se (s,e), primary key (pk,se without overlaps));
|
||||
insert into t1 values (1,'2020-01-01','2020-02-20');
|
||||
delete from t1 for portion of se from '2020-01-30' to '2020-01-31';
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user