mariadb/mysql-test/suite/rpl/t/temporal_row-9560.test
Sergei Golubchik a38b705fe0 MDEV-9560 Mariadb 10.1 Crashes when replicating from 10.0
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)
2016-02-23 10:46:16 +01:00

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;