From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/suite/rpl/t/rpl_stm_sp.test | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 mysql-test/suite/rpl/t/rpl_stm_sp.test (limited to 'mysql-test/suite/rpl/t/rpl_stm_sp.test') diff --git a/mysql-test/suite/rpl/t/rpl_stm_sp.test b/mysql-test/suite/rpl/t/rpl_stm_sp.test new file mode 100644 index 00000000..b99906b8 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_stm_sp.test @@ -0,0 +1,30 @@ +--source include/have_binlog_format_statement.inc +--source include/master-slave.inc + +--echo # +--echo # MDEV-11815 SP variables of temporal data types do not replicate correctly +--echo # + +connection master; +CREATE TABLE t1(a INT); +DELIMITER $$; +CREATE PROCEDURE p1() +BEGIN + DECLARE a TIME DEFAULT '01:01:01'; + INSERT INTO t1 VALUES (a=10101); +END; +$$ +DELIMITER ;$$ +CALL p1; +SELECT * FROM t1; + +sync_slave_with_master; +SELECT * FROM t1; + +connection master; +DROP TABLE t1; +DROP PROCEDURE p1; +sync_slave_with_master; + + +--source include/rpl_end.inc -- cgit v1.2.3