WL#3694, fix for events

parent 7965816f
...@@ -11,6 +11,8 @@ DROP PROCEDURE IF EXISTS p1; ...@@ -11,6 +11,8 @@ DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p11; DROP PROCEDURE IF EXISTS p11;
DROP FUNCTION IF EXISTS f1; DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2; DROP FUNCTION IF EXISTS f2;
DROP EVENT IF EXISTS e1;
DROP EVENT IF EXISTS e11;
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b INT, c VARCHAR(64)) ENGINE=myisam; CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b INT, c VARCHAR(64)) ENGINE=myisam;
INSERT INTO t1 VALUES (1,1,'1'); INSERT INTO t1 VALUES (1,1,'1');
...@@ -108,6 +110,7 @@ INSERT INTO t11 VALUES(7,7,f2(7)); ...@@ -108,6 +110,7 @@ INSERT INTO t11 VALUES(7,7,f2(7));
INSERT INTO t11 VALUES (103,103,''); INSERT INTO t11 VALUES (103,103,'');
SET GLOBAL EVENT_SCHEDULER = on; SET GLOBAL EVENT_SCHEDULER = on;
SET GLOBAL EVENT_SCHEDULER = off;
SHOW TABLES LIKE 't%'; SHOW TABLES LIKE 't%';
Tables_in_test (t%) Tables_in_test (t%)
...@@ -444,3 +447,5 @@ DROP PROCEDURE IF EXISTS p1; ...@@ -444,3 +447,5 @@ DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p11; DROP PROCEDURE IF EXISTS p11;
DROP FUNCTION IF EXISTS f1; DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2; DROP FUNCTION IF EXISTS f2;
DROP EVENT IF EXISTS e1;
DROP EVENT IF EXISTS e11;
...@@ -32,6 +32,8 @@ DROP PROCEDURE IF EXISTS p1; ...@@ -32,6 +32,8 @@ DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p11; DROP PROCEDURE IF EXISTS p11;
DROP FUNCTION IF EXISTS f1; DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2; DROP FUNCTION IF EXISTS f2;
DROP EVENT IF EXISTS e1;
DROP EVENT IF EXISTS e11;
--enable_warnings --enable_warnings
...@@ -178,6 +180,7 @@ INSERT INTO t11 VALUES (103,103,''); ...@@ -178,6 +180,7 @@ INSERT INTO t11 VALUES (103,103,'');
SET GLOBAL EVENT_SCHEDULER = on; SET GLOBAL EVENT_SCHEDULER = on;
# Wait 2 sec while events will executed # Wait 2 sec while events will executed
--sleep 2 --sleep 2
SET GLOBAL EVENT_SCHEDULER = off;
# Check original objects # Check original objects
--echo --echo
...@@ -270,6 +273,8 @@ DROP PROCEDURE IF EXISTS p1; ...@@ -270,6 +273,8 @@ DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p11; DROP PROCEDURE IF EXISTS p11;
DROP FUNCTION IF EXISTS f1; DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2; DROP FUNCTION IF EXISTS f2;
DROP EVENT IF EXISTS e1;
DROP EVENT IF EXISTS e11;
--enable_warnings --enable_warnings
--sync_slave_with_master slave --sync_slave_with_master slave
......
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