mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
02a4bbb412
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.
30 lines
545 B
Text
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
|