| 1 |
--source include/have_innodb.inc |
| 2 |
--source include/have_binlog_format_row.inc |
| 3 |
--source include/master-slave.inc |
| 4 |
|
| 5 |
--connection slave |
| 6 |
SET @old_format= @@GLOBAL.binlog_row_image; |
| 7 |
SET GLOBAL binlog_row_image=MINIMAL; |
| 8 |
--source include/stop_slave.inc |
| 9 |
--source include/start_slave.inc |
| 10 |
SET GLOBAL binlog_row_image= @old_format; |
| 11 |
--connection default |
| 12 |
SET SESSION binlog_row_image=MINIMAL; |
| 13 |
|
| 14 |
CREATE TABLE t (id INT AUTO_INCREMENT, col_int BIGINT NOT NULL, UNIQUE (col_int), KEY(id)) ENGINE=InnoDB; |
| 15 |
INSERT INTO t VALUES (1,1); |
| 16 |
UPDATE t SET id = 2; |
| 17 |
|
| 18 |
--sync_slave_with_master |
| 19 |
|
| 20 |
# Cleanup |
| 21 |
--connection master |
| 22 |
DROP TABLE t; |
| 23 |
--source include/rpl_end.inc |