1#
2# include/test_fieldsize.inc
3#
4# This include file is designed to create a table with one column
5# whose size on the master is greater than that on the slave. The
6# test should fail with an error on the slave.
7#
8
9connection master;
10DROP TABLE IF EXISTS t1;
11
12sync_slave_with_master;
13STOP SLAVE;
14RESET SLAVE;
15eval $test_table_slave;
16
17connection master;
18eval $test_table_master;
19RESET MASTER;
20
21eval $test_insert;
22
23connection slave;
24START SLAVE;
25--let $slave_sql_errno= 1677
26--let $show_slave_sql_error= 1
27--source include/wait_for_slave_sql_error.inc
28
29# The following should be 0
30SELECT COUNT(*) FROM t1;
31STOP SLAVE;
32RESET SLAVE;
33
34connection master;
35RESET MASTER;
36
37connection slave;
38START SLAVE;
39
40