1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-21 21:22:27 +03:00

events in perfschema tests: use ON COMPLETION NOT PRESERVE

when the execution is very slow, under valgrind,
the event might manage to fire more than once, making the
test to fail
This commit is contained in:
Sergei Golubchik
2024-03-27 09:51:28 +01:00
parent 49f2e9f700
commit dc681953cf
3 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ SET GLOBAL event_scheduler=ON;
CREATE TABLE table_t(a INT);
DELIMITER |;
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN
INSERT INTO table_t VALUES(1);
END|