mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
More fixes to remove test failures in pushbuild.
This commit is contained in:
@@ -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()
|
|||||||
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
|
|||||||
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
|
|||||||
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)
|
|||||||
-- 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;
|
||||||
|
Reference in New Issue
Block a user