mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
a38b705fe0
when replicating old temporal type fields (that don't store metadata in the binlog), take the precision from destination fields. (this fixes the replication failure, crashes were fixed in a different commit)
20 lines
474 B
Text
20 lines
474 B
Text
#
|
|
# MDEV-9560 Mariadb 10.1 Crashes when replicating from 10.0
|
|
#
|
|
source include/have_binlog_format_row.inc;
|
|
source include/master-slave.inc;
|
|
|
|
select @@mysql56_temporal_format;
|
|
create table t1 (ts timestamp(3), t time(3), dt datetime(3));
|
|
insert into t1 values ('2016-02-15 12:50:06.123', '12:50:06.123', '2016-02-15 12:50:06.123');
|
|
|
|
sync_slave_with_master;
|
|
|
|
select @@mysql56_temporal_format;
|
|
select * from t1;
|
|
|
|
connection master;
|
|
drop table t1;
|
|
|
|
source include/rpl_end.inc;
|
|
|