mariadb/mysql-test/suite/rpl/t/rpl_stm_sp.test
Alexander Barkov 02a4bbb412 MDEV-11913 Split sp_get_item_value() into methods in Type_handler
This patch also fixes:
 MDEV-11815 SP variables of temporal data types do not replicate correctly
Temporal values are now printed in temporal literal format, with the
SQL-standard data type prefix:
  TIME'10:20:30', DATE'2001-01-01', TIMESTAMP'2001-01-01 10:20:30'
Previously temporal values were printed using the text string notation, e.g.
 _latin1'10:20:30' COLLATE latin1_swedish_ci, hence the bug.
2017-02-01 15:36:22 +04:00

30 lines
545 B
Text

--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