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

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_stm_create_if_not_exists.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:
19
19
  SELECT 'abc' AS c3, 1 AS c4;
20
20
source include/show_binlog_events.inc;
21
21
 
 
22
--sync_slave_with_master
 
23
--connection master
 
24
 
22
25
if (!$is_temporary)
23
26
{
24
 
  let $diff_table= test.t1;
25
 
  source include/rpl_diff_tables.inc;
 
27
  --let $diff_tables= master:t1,slave:t1
 
28
  --source include/diff_tables.inc
26
29
}
27
30
 
28
31
--echo
36
39
  SELECT 'abc', 2;
37
40
source include/show_binlog_events.inc;
38
41
 
 
42
--sync_slave_with_master
 
43
--connection master
 
44
 
39
45
if (!$is_temporary)
40
46
{
41
 
  let $diff_table= test.t1;
42
 
  source include/rpl_diff_tables.inc;
 
47
  --let $diff_tables= master:t1,slave:t1
 
48
  --source include/diff_tables.inc
43
49
}
44
50
 
45
51
--echo
57
63
  SELECT 'abc', 20;
58
64
source include/show_binlog_events.inc;
59
65
 
 
66
--sync_slave_with_master
 
67
--connection master
 
68
 
60
69
if (!$is_temporary)
61
70
{
62
 
  let $diff_table= test.t1;
63
 
  source include/rpl_diff_tables.inc;
 
71
  --let $diff_tables= master:test.t1,slave:test.t1
 
72
  --source include/diff_tables.inc
64
73
}
65
74
USE test;
66
75
DROP DATABASE db1;
74
83
  REPLACE SELECT '123', 2;
75
84
source include/show_binlog_events.inc;
76
85
 
 
86
--sync_slave_with_master
 
87
--connection master
 
88
 
77
89
if (!$is_temporary)
78
90
{
79
 
  let $diff_table= test.t1;
80
 
  source include/rpl_diff_tables.inc;
 
91
  --let $diff_tables= master:t1,slave:t1
 
92
  --source include/diff_tables.inc
81
93
}
82
94
 
83
95
--echo
89
101
  IGNORE SELECT '123', 2;
90
102
source include/show_binlog_events.inc;
91
103
 
 
104
--sync_slave_with_master
 
105
--connection master
 
106
 
92
107
if (!$is_temporary)
93
108
{
94
 
  let $diff_table= test.t1;
95
 
  source include/rpl_diff_tables.inc;
 
109
  --let $diff_tables= master:t1,slave:t1
 
110
  --source include/diff_tables.inc
96
111
}
97
112
 
98
113
--echo
103
118
eval CREATE $_temporary TABLE IF NOT EXISTS t1
104
119
  SELECT '123', 2;
105
120
source include/show_binlog_events.inc;
 
121
 
 
122
--sync_slave_with_master
 
123
--connection master
 
124
 
106
125
if (!$is_temporary)
107
126
{
108
 
  let $diff_table= test.t1;
109
 
  source include/rpl_diff_tables.inc;
 
127
  --let $diff_tables= master:t1,slave:t1
 
128
  --source include/diff_tables.inc
110
129
}
111
130
 
112
131
--echo
121
140
  IGNORE (SELECT '123', 3) UNION (SELECT '123', 4);
122
141
source include/show_binlog_events.inc;
123
142
 
 
143
--sync_slave_with_master
 
144
--connection master
 
145
 
124
146
if (!$is_temporary)
125
147
{
126
 
  let $diff_table= test.t1;
127
 
  source include/rpl_diff_tables.inc;
 
148
  --let $diff_tables= master:t1,slave:t1
 
149
  --source include/diff_tables.inc
128
150
}
129
151
 
130
152
if (!$is_temporary)
155
177
call p1(500);
156
178
call p1(600);
157
179
source include/show_binlog_events.inc;
 
180
 
 
181
--sync_slave_with_master
 
182
--connection master
 
183
 
158
184
if (!$is_temporary)
159
185
{
160
 
  let $diff_table= test.t1;
161
 
  source include/rpl_diff_tables.inc;
 
186
  --let $diff_tables= master:t1,slave:t1
 
187
  --source include/diff_tables.inc
162
188
}
163
189
DROP PROCEDURE p1;
164
190
 
173
199
SET @a= 800;
174
200
EXECUTE stm USING @a;
175
201
source include/show_binlog_events.inc;
 
202
 
 
203
--sync_slave_with_master
 
204
--connection master
 
205
 
176
206
if (!$is_temporary)
177
207
{
178
 
  let $diff_table= test.t1;
179
 
  source include/rpl_diff_tables.inc;
 
208
  --let $diff_tables= master:t1,slave:t1
 
209
  --source include/diff_tables.inc
180
210
}
181
211
 
182
212
--echo
224
254
  */SELECT 'abc', 905;
225
255
source include/show_binlog_events.inc;
226
256
 
 
257
--sync_slave_with_master
 
258
--connection master
 
259
 
227
260
if (!$is_temporary)
228
261
{
229
 
  let $diff_table= test.t1;
230
 
  source include/rpl_diff_tables.inc;
 
262
  --let $diff_tables= master:t1,slave:t1
 
263
  --source include/diff_tables.inc
231
264
}
232
265
 
233
266
DROP TABLE t2;