More fixes to remove test failures in pushbuild.

parent ec9d14f8
...@@ -8,7 +8,7 @@ CREATE TABLE test.t1 (n MEDIUMINT NOT NULL, d DATETIME, PRIMARY KEY(n)); ...@@ -8,7 +8,7 @@ CREATE TABLE test.t1 (n MEDIUMINT NOT NULL, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t2 (n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n)); CREATE TABLE test.t2 (n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY KEY(n)); CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY KEY(n));
INSERT INTO test.t1 VALUES (1,NOW()); INSERT INTO test.t1 VALUES (1,NOW());
CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1;// CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1//
CREATE PROCEDURE test.p3() CREATE PROCEDURE test.p3()
BEGIN BEGIN
INSERT INTO test.t3 (d) VALUES (NOW()); INSERT INTO test.t3 (d) VALUES (NOW());
...@@ -18,6 +18,7 @@ CREATE PROCEDURE test.p2() ...@@ -18,6 +18,7 @@ CREATE PROCEDURE test.p2()
BEGIN BEGIN
INSERT INTO test.t2 (f,d) VALUES (RAND(),NOW()); INSERT INTO test.t2 (f,d) VALUES (RAND(),NOW());
END// END//
INSERT INTO test.t1 VALUES (1+1, NOW());
<End test section 2 (Tiggers & SP)> <End test section 2 (Tiggers & SP)>
----------------------------------- -----------------------------------
......
...@@ -39,7 +39,7 @@ CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY K ...@@ -39,7 +39,7 @@ CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY K
INSERT INTO test.t1 VALUES (1,NOW()); INSERT INTO test.t1 VALUES (1,NOW());
delimiter //; delimiter //;
CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1;// CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1//
CREATE PROCEDURE test.p3() CREATE PROCEDURE test.p3()
BEGIN BEGIN
INSERT INTO test.t3 (d) VALUES (NOW()); INSERT INTO test.t3 (d) VALUES (NOW());
...@@ -51,6 +51,10 @@ BEGIN ...@@ -51,6 +51,10 @@ BEGIN
END// END//
delimiter ;// delimiter ;//
# Make sure that all definition have propagated to the slave
sync_slave_with_master;
connection master;
-- disable_query_log -- disable_query_log
-- disable_result_log -- disable_result_log
SET @wait_count = 1; SET @wait_count = 1;
...@@ -67,6 +71,13 @@ while ($1) ...@@ -67,6 +71,13 @@ while ($1)
-- enable_result_log -- enable_result_log
-- enable_query_log -- enable_query_log
# Just a precaution to make sure all changes have made it over to the
# slave
connection master;
let $count = `select count(*) from t1`;
eval INSERT INTO test.t1 VALUES ($count+1, NOW());
sync_slave_with_master;
#show binlog events; #show binlog events;
#select * from test.t2; #select * from test.t2;
#select * from test.t3; #select * from test.t3;
......
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