~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_row_tabledefs.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
sync_slave_with_master;
139
139
--echo **** On Slave ****
140
140
SELECT * FROM t2;
141
 
--replace_result $MASTER_MYPORT MASTER_PORT
142
 
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
143
 
--query_vertical SHOW SLAVE STATUS
 
141
--source include/check_slave_is_running.inc
144
142
 
145
143
connection master;
146
144
INSERT INTO t9 VALUES (4);
149
147
connection master;
150
148
INSERT INTO t4 VALUES (4);
151
149
connection slave;
152
 
--source include/wait_for_slave_sql_to_stop.inc
153
 
--replace_result $MASTER_MYPORT MASTER_PORT
154
 
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
155
 
--query_vertical SHOW SLAVE STATUS
156
 
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
157
 
START SLAVE;
 
150
--let $slave_skip_counter= 2
 
151
--let $slave_sql_errno= 1535
 
152
--let $show_slave_sql_error= 1
 
153
--source include/wait_for_slave_sql_error_and_skip.inc
158
154
 
159
155
connection master;
160
156
INSERT INTO t9 VALUES (5);
163
159
connection master;
164
160
INSERT INTO t5 VALUES (5,10,25);
165
161
connection slave;
166
 
--source include/wait_for_slave_sql_to_stop.inc
167
 
--replace_result $MASTER_MYPORT MASTER_PORT
168
 
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
169
 
--query_vertical SHOW SLAVE STATUS
170
 
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
171
 
START SLAVE;
 
162
--let $slave_skip_counter= 2
 
163
--let $slave_sql_errno= 1535
 
164
--let $show_slave_sql_error= 1
 
165
--source include/wait_for_slave_sql_error_and_skip.inc
172
166
 
173
167
connection master;
174
168
INSERT INTO t9 VALUES (6);
177
171
connection master;
178
172
INSERT INTO t6 VALUES (6,12,36);
179
173
connection slave;
180
 
--source include/wait_for_slave_sql_to_stop.inc
181
 
--replace_result $MASTER_MYPORT MASTER_PORT
182
 
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
183
 
--query_vertical SHOW SLAVE STATUS
184
 
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
185
 
START SLAVE;
 
174
--let $slave_skip_counter= 2
 
175
--let $slave_sql_errno= 1535
 
176
--let $show_slave_sql_error= 1
 
177
--source include/wait_for_slave_sql_error_and_skip.inc
186
178
 
187
179
connection master;
188
180
INSERT INTO t9 VALUES (6);
189
181
sync_slave_with_master;
190
 
--replace_result $SLAVE_MYPORT SLAVE_PORT
191
 
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
192
 
--query_vertical SHOW SLAVE STATUS
 
182
--source include/check_slave_is_running.inc
193
183
 
194
184
# Testing some tables extra field that can be null and cannot be null
195
185
# (but have default values)