MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test_fieldsize.inc
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 
9 connection master;
10 DROP TABLE IF EXISTS t1;
11 
12 sync_slave_with_master;
13 STOP SLAVE;
14 eval $test_table_slave;
15 
16 connection master;
17 eval $test_table_master;
18 
19 --let $rpl_only_running_threads= 1
20 --source include/rpl_reset.inc
21 
22 eval $test_insert;
23 
24 connection slave;
25 --let $slave_sql_errno= convert_error(ER_SLAVE_CONVERSION_FAILED) # 1677
26 --source include/wait_for_slave_sql_error.inc
27 
28 # The following should be 0
29 SELECT COUNT(*) FROM t1;
30 STOP SLAVE;
31 --source include/rpl_reset.inc
32 --let $rpl_only_running_threads= 0