~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_row_basic_11bugs.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
connection master;
36
36
DROP DATABASE test_ignore;
 
37
USE test;
 
38
DROP TABLE t1;
37
39
sync_slave_with_master;
 
40
USE test;
 
41
 
38
42
 
39
43
# Bug#19995: Extreneous table maps generated for statements that does
40
44
# not generate rows
41
 
--disable_query_log
42
 
--source include/master-slave-reset.inc
43
 
--enable_query_log
 
45
--source include/rpl_reset.inc
44
46
 
45
47
connection master;
46
48
CREATE TABLE t1 (a INT);
55
57
# BUG#17620: Replicate (Row Based) Fails when Query Cache enabled on
56
58
# slave
57
59
--echo ================ Test for BUG#17620 ================
58
 
--disable_query_log
59
 
--source include/master-slave-reset.inc
60
 
--enable_query_log
 
60
--source include/rpl_reset.inc
61
61
 
62
62
--echo **** On Slave **** 
63
63
connection slave;
64
64
SET GLOBAL QUERY_CACHE_SIZE=0;
 
65
call mtr.add_suppression("Slave SQL.*Could not execute Update_rows event on table test.t1.* Error_code: 1032");
65
66
 
66
67
--echo **** On Master **** 
67
68
connection master;
89
90
SELECT * FROM t1;
90
91
 
91
92
SET GLOBAL QUERY_CACHE_SIZE=0;
 
93
--connection master
 
94
DROP TABLE t1;
 
95
 
92
96
 
93
97
# Bug#22550: Replication of BIT columns failing
94
98
--echo ================ Test for BUG#22550 ================
95
 
--disable_query_log
96
 
--source include/master-slave-reset.inc
97
 
--enable_query_log
 
99
--source include/rpl_reset.inc
98
100
 
99
101
connection master;
100
102
CREATE TABLE t1 (a BIT(1), b INT) ENGINE=MYISAM;
120
122
# field does not work
121
123
 
122
124
--echo ================ Test for BUG#22583 ================
123
 
--disable_query_log
124
 
--source include/master-slave-reset.inc
125
 
--enable_query_log
 
125
--source include/rpl_reset.inc
126
126
 
127
127
# disabling warnings temporarily for ENGINE=INNODB to work without InnoDB
128
128
--disable_warnings
227
227
# row-based replication 
228
228
#
229
229
 
230
 
disable_query_log;
231
 
source include/master-slave-reset.inc;
232
 
enable_query_log;
 
230
--source include/rpl_reset.inc
233
231
 
234
232
--echo **** On Master ****
235
233
connection master;
236
 
SET SESSION BINLOG_FORMAT=ROW;
237
234
CREATE TABLE t1 (a INT PRIMARY KEY, b SET('master','slave'));
238
235
INSERT INTO t1 VALUES (1,'master,slave'), (2,'master,slave');
239
236
--echo **** On Slave ****
241
238
UPDATE t1 SET a = 5, b = 'slave' WHERE a = 1;
242
239
SELECT * FROM t1 ORDER BY a;
243
240
# since bug#31552/31609 idempotency is not default any longer. In
244
 
# order the preceeding test UPDATE t1 to pass the mode is switched
 
241
# order for the preceeding test UPDATE t1 to pass, the mode is switched
245
242
# temprorarily
246
243
set @@global.slave_exec_mode= 'IDEMPOTENT';
247
244
--echo **** On Master ****
255
252
disable_query_log;
256
253
eval SELECT "$last_error" AS Last_SQL_Error;
257
254
enable_query_log;
 
255
 
258
256
SELECT * FROM t1 ORDER BY a;
259
 
DROP TABLE t1;
260
257
 
261
258
--echo **** On Master ****
262
259
connection master;
263
260
DROP TABLE t1;
 
261
--source include/rpl_end.inc