mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
6eb1eed53f
The problem was that update_timing_fields_for_event() didn't release all MDL locks it took.
14 lines
443 B
Text
14 lines
443 B
Text
SET GLOBAL event_scheduler=1;
|
|
CREATE TABLE t1 (a int primary key, b int) engine=innodb;
|
|
insert into t1 values (1,1),(2,2),(3,3);
|
|
CREATE TABLE t2 (a int primary key) engine=innodb;
|
|
CREATE EVENT e_t1 ON SCHEDULE EVERY 1 SECOND DO insert ignore into test.t2 select a from test.t1;
|
|
select * from t2;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
drop event e_t1;
|
|
ALTER TABLE mysql.event DROP PRIMARY KEY, ADD PRIMARY KEY(db,name);
|
|
drop table t1,t2;
|
|
SET GLOBAL event_scheduler=default;
|