summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/t/rpl_old_decimal.test
blob: 79fd275407956845a696a3a688d2bdc86bba50a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--source include/have_binlog_format_row.inc
--source include/master-slave.inc


--connection slave
CREATE TABLE t1dec102 (a DECIMAL(10,2));

--connection master
let $MYSQLD_DATADIR= `select @@datadir`;

--copy_file std_data/old_decimal/t1dec102.frm $MYSQLD_DATADIR/test/t1dec102.frm
--copy_file std_data/old_decimal/t1dec102.MYD $MYSQLD_DATADIR/test/t1dec102.MYD
--copy_file std_data/old_decimal/t1dec102.MYI $MYSQLD_DATADIR/test/t1dec102.MYI
INSERT INTO t1dec102 VALUES(999.99);

--let $slave_sql_errno=1677
--let $show_slave_sql_error= 1
call mtr.add_suppression("Slave SQL.*Column 0 of table .* cannot be converted from type.* Error_code: 1677");
--source include/wait_for_slave_sql_error_and_skip.inc

--connection master
DROP TABLE t1dec102;
--sync_slave_with_master

--source include/rpl_end.inc