mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
23227604be
remove 'drop database' from new tests. mysql-test/suite/rpl/r/rpl_innodb_bug28430.result: remove "DROP DATABASE test" mysql-test/suite/rpl/r/rpl_innodb_bug30888.result: remove "DROP DATABASE test" mysql-test/suite/rpl/r/rpl_innodb_bug30919.result: remove "DROP DATABASE test" mysql-test/suite/rpl/t/rpl_innodb_bug28430.test: remove "DROP DATABASE test" mysql-test/suite/rpl/t/rpl_innodb_bug30888.test: remove "DROP DATABASE test" mysql-test/suite/rpl/t/rpl_innodb_bug30919.test: remove "DROP DATABASE test" storage/innobase/handler/ha_innodb.cc: undo unneccessary edits.
35 lines
1 KiB
Text
35 lines
1 KiB
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
use test;
|
|
CREATE TABLE test.regular_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
|
fkid MEDIUMINT, filler VARCHAR(255),
|
|
PRIMARY KEY(id)) ENGINE='innodb';
|
|
CREATE PROCEDURE test.proc_norm()
|
|
BEGIN
|
|
DECLARE ins_count INT DEFAULT 1000;
|
|
DECLARE del_count INT;
|
|
DECLARE cur_user VARCHAR(255);
|
|
DECLARE local_uuid VARCHAR(255);
|
|
DECLARE local_time TIMESTAMP;
|
|
SET local_time= NOW();
|
|
SET cur_user= CURRENT_USER();
|
|
SET local_uuid= UUID();
|
|
WHILE ins_count > 0 DO
|
|
INSERT INTO test.regular_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
|
ins_count,'Going to test MBR for MySQL');
|
|
SET ins_count = ins_count - 1;
|
|
END WHILE;
|
|
SELECT MAX(id) FROM test.regular_tbl INTO del_count;
|
|
WHILE del_count > 0 DO
|
|
DELETE FROM test.regular_tbl WHERE id = del_count;
|
|
SET del_count = del_count - 2;
|
|
END WHILE;
|
|
END|
|
|
CALL test.proc_norm();
|
|
DROP PROCEDURE test.proc_norm;
|
|
DROP TABLE test.regular_tbl;
|