mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Test case for BUG#16621: INSERTs in Stored Procedures causes data corruption
in the Binary Log. mysql-test/r/rpl_sp.result: Update result file. mysql-test/t/rpl_sp.test: Add test case for BUG#16621: INSERTs in Stored Procedures causes data corruption in the Binary Log.
This commit is contained in:
parent
b688b19697
commit
ff3079c8d0
2 changed files with 49 additions and 0 deletions
|
@ -401,5 +401,18 @@ drop function f1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
1
|
1
|
||||||
|
DROP PROCEDURE IF EXISTS p1;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
CREATE TABLE t1(col VARCHAR(10));
|
||||||
|
CREATE PROCEDURE p1(arg VARCHAR(10))
|
||||||
|
INSERT INTO t1 VALUES(arg);
|
||||||
|
CALL p1('test');
|
||||||
|
SELECT * FROM t1;
|
||||||
|
col
|
||||||
|
test
|
||||||
|
SELECT * FROM t1;
|
||||||
|
col
|
||||||
|
test
|
||||||
|
DROP PROCEDURE p1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
reset master;
|
reset master;
|
||||||
|
|
|
@ -401,6 +401,42 @@ sync_slave_with_master;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#16621 "INSERTs in Stored Procedures causes data corruption in the Binary
|
||||||
|
# Log for 5.0.18"
|
||||||
|
#
|
||||||
|
|
||||||
|
# Prepare environment.
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP PROCEDURE IF EXISTS p1;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
# Test case.
|
||||||
|
|
||||||
|
CREATE TABLE t1(col VARCHAR(10));
|
||||||
|
|
||||||
|
CREATE PROCEDURE p1(arg VARCHAR(10))
|
||||||
|
INSERT INTO t1 VALUES(arg);
|
||||||
|
|
||||||
|
CALL p1('test');
|
||||||
|
|
||||||
|
SELECT * FROM t1;
|
||||||
|
|
||||||
|
sync_slave_with_master;
|
||||||
|
connection slave;
|
||||||
|
|
||||||
|
SELECT * FROM t1;
|
||||||
|
|
||||||
|
# Cleanup.
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
|
||||||
|
DROP PROCEDURE p1;
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
connection master;
|
connection master;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
Loading…
Reference in a new issue