Commit dc681953 authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent 49f2e9f7
...@@ -32,7 +32,7 @@ SET GLOBAL event_scheduler=ON; ...@@ -32,7 +32,7 @@ SET GLOBAL event_scheduler=ON;
CREATE TABLE table_t(a INT); CREATE TABLE table_t(a INT);
DELIMITER |; DELIMITER |;
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END| END|
......
...@@ -145,7 +145,7 @@ Bollywood ...@@ -145,7 +145,7 @@ Bollywood
# Event # Event
SET GLOBAL event_scheduler=ON; SET GLOBAL event_scheduler=ON;
CREATE TABLE table_t(a INT); CREATE TABLE table_t(a INT);
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END| END|
...@@ -165,7 +165,7 @@ statement/sql/call_procedure CALL SampleProc1(30,40,50) NULL NULL 0 ...@@ -165,7 +165,7 @@ statement/sql/call_procedure CALL SampleProc1(30,40,50) NULL NULL 0
statement/sql/call_procedure CALL SampleProc2("Jwalamukhi",34) NULL NULL 0 statement/sql/call_procedure CALL SampleProc2("Jwalamukhi",34) NULL NULL 0
statement/sql/call_procedure CALL SampleProc3() NULL NULL 0 statement/sql/call_procedure CALL SampleProc3() NULL NULL 0
statement/sql/call_procedure CALL SampleProc4() NULL NULL 0 statement/sql/call_procedure CALL SampleProc4() NULL NULL 0
statement/sql/create_event CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO statement/sql/create_event CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END NULL NULL 0 END NULL NULL 0
......
...@@ -145,7 +145,7 @@ Bollywood ...@@ -145,7 +145,7 @@ Bollywood
# Event # Event
SET GLOBAL event_scheduler=ON; SET GLOBAL event_scheduler=ON;
CREATE TABLE table_t(a INT); CREATE TABLE table_t(a INT);
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END| END|
...@@ -182,7 +182,7 @@ statement/sql/call_procedure CALL SampleProc1(30,40,50) stored_programs NULL NUL ...@@ -182,7 +182,7 @@ statement/sql/call_procedure CALL SampleProc1(30,40,50) stored_programs NULL NUL
statement/sql/call_procedure CALL SampleProc2("Jwalamukhi",34) stored_programs NULL NULL NULL NULL 0 statement/sql/call_procedure CALL SampleProc2("Jwalamukhi",34) stored_programs NULL NULL NULL NULL 0
statement/sql/call_procedure CALL SampleProc3() stored_programs NULL NULL NULL NULL 0 statement/sql/call_procedure CALL SampleProc3() stored_programs NULL NULL NULL NULL 0
statement/sql/call_procedure CALL SampleProc4() stored_programs NULL NULL NULL NULL 0 statement/sql/call_procedure CALL SampleProc4() stored_programs NULL NULL NULL NULL 0
statement/sql/create_event CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO statement/sql/create_event CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END stored_programs NULL NULL NULL NULL 0 END stored_programs NULL NULL NULL NULL 0
...@@ -553,7 +553,7 @@ Bollywood ...@@ -553,7 +553,7 @@ Bollywood
# Event # Event
SET GLOBAL event_scheduler=ON; SET GLOBAL event_scheduler=ON;
CREATE TABLE table_t(a INT); CREATE TABLE table_t(a INT);
CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND ON COMPLETION NOT PRESERVE DO
BEGIN BEGIN
INSERT INTO table_t VALUES(1); INSERT INTO table_t VALUES(1);
END| END|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment