Debian Codegraph @

mysql-test/suite/rpl/t/rpl_row_img_misc.test

raw
1 -- source include/not_group_replication_plugin.inc
2 -- source include/have_binlog_format_row.inc
3 -- source include/force_myisam_default.inc
4 -- source include/have_myisam.inc
5 -- source include/master-slave.inc
6
7 #
8 # BUG#53643: assert in Field_new_decimal::store_value on slave server
9 #
10
11 CREATE TABLE t0 ( col1 INT NOT NULL, col2 INT ) ENGINE=InnoDB;
12 INSERT INTO t0 (col1,col2) VALUES (4,7),(4,8);
13
14 --source include/sync_slave_sql_with_master.inc
15 -- connection master
16
17 CREATE TABLE t1 (col3 DECIMAL(35,0) DEFAULT NULL,
18 col1 INT NOT NULL,
19 col2 INT NOT NULL DEFAULT '0',
20 PRIMARY KEY (col1))
21 ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
22
23 SET SESSION BINLOG_ROW_IMAGE = minimal;
24
25 # This statement would lead to an assert on slave
26 REPLACE INTO t1 ( col1,col2) SELECT col1,col2 FROM t0;
27
28 --source include/sync_slave_sql_with_master.inc
29 -- connection master
30
31 -- let $diff_tables= master:t0, slave:t0
32 -- source include/diff_tables.inc
33
34 -- let $diff_tables= master:t1, slave:t1
35 -- source include/diff_tables.inc
36
37 DROP TABLE t0, t1;
38 --source include/rpl_end.inc