mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 02:16:32 +01:00 
			
		
		
		
	 02a4bbb412
			
		
	
	
	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.
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| include/master-slave.inc
 | |
| [connection master]
 | |
| #
 | |
| # MDEV-11815 SP variables of temporal data types do not replicate correctly
 | |
| #
 | |
| connection master;
 | |
| CREATE TABLE t1(a INT);
 | |
| CREATE PROCEDURE p1()
 | |
| BEGIN
 | |
| DECLARE a TIME DEFAULT '01:01:01';
 | |
| INSERT INTO t1 VALUES (a=10101);
 | |
| END;
 | |
| $$
 | |
| CALL p1;
 | |
| SELECT * FROM t1;
 | |
| a
 | |
| 1
 | |
| connection slave;
 | |
| SELECT * FROM t1;
 | |
| a
 | |
| 1
 | |
| connection master;
 | |
| DROP TABLE t1;
 | |
| DROP PROCEDURE p1;
 | |
| connection slave;
 | |
| include/rpl_end.inc
 |