~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_row_sp002.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:
1
1
#############################################################################
2
2
# This test is being created to test out the non deterministic items with   #
3
3
# row based replication.                                                    #
4
 
# Original Author: JBM                                                      #
5
 
# Original Date: Aug/09/2005                                                #
6
 
# Updated: Aug/29/2005                                                      #
7
4
#############################################################################
8
5
# Test: Contains two stored procedures test one that insert data into tables#
9
6
#        and use the LAST_INSERTED_ID() on tables with FOREIGN KEY(a)       #
13
10
#        the table depending on the CASE outcome. The test uses this SP in a#
14
11
#        transaction first rolling back and then commiting,                 #
15
12
#############################################################################
16
 
# Mod Date: 08/22/2005                                                      #
17
 
# TEST: Added test to include UPDATE CASCADE on table with FK per Trudy     #
18
 
#############################################################################
19
13
 
20
14
 
21
15
 
24
18
-- source include/master-slave.inc
25
19
 
26
20
 
27
 
# Begin clean up test section
28
 
connection master;
29
 
--disable_warnings
30
 
DROP PROCEDURE IF EXISTS test.p1;
31
 
DROP PROCEDURE IF EXISTS test.p2;
32
 
DROP PROCEDURE IF EXISTS test.p3;
33
 
DROP TABLE IF EXISTS test.t3;
34
 
DROP TABLE IF EXISTS test.t1;
35
 
DROP TABLE IF EXISTS test.t2;
36
 
--enable_warnings
37
 
# End of cleanup
38
 
 
39
21
# Begin test section 1
40
22
 
41
23
eval CREATE TABLE test.t1 (a INT AUTO_INCREMENT KEY, t CHAR(6)) ENGINE=$engine_type;
71
53
 
72
54
let $message=< -- test 1 select slave after p1 -- >;
73
55
--source include/show_msg.inc
74
 
save_master_pos;
75
 
connection slave;
76
 
sync_with_master;
 
56
sync_slave_with_master;
77
57
SELECT * FROM test.t1;
78
58
SELECT * FROM test.t2;
79
59
 
86
66
 
87
67
let $message=< -- test 1 select slave after p2 -- >;
88
68
--source include/show_msg.inc
89
 
save_master_pos;
90
 
connection slave;
91
 
sync_with_master;
 
69
sync_slave_with_master;
92
70
SELECT * FROM test.t1;
93
71
SELECT * FROM test.t2;
94
72
 
136
114
 
137
115
let $message=< -- test 2 select Slave after p1 -- >;
138
116
--source include/show_msg.inc
139
 
save_master_pos;
140
 
connection slave;
141
 
sync_with_master;
 
117
sync_slave_with_master;
142
118
SELECT * FROM test.t1;
143
119
SELECT * FROM test.t2;
144
120
 
153
129
 
154
130
let $message=< -- test 1 select Slave after p2 -- >;
155
131
--source include/show_msg.inc
156
 
save_master_pos;
157
 
connection slave;
158
 
sync_with_master;
 
132
sync_slave_with_master;
159
133
SELECT * FROM test.t1;
160
134
SELECT * FROM test.t2;
161
135
 
195
169
 
196
170
ROLLBACK;
197
171
select * from test.t3;
198
 
save_master_pos;
199
 
connection slave;
200
 
sync_with_master;
 
172
sync_slave_with_master;
201
173
select * from test.t3;
202
174
 
203
175
connection master;
216
188
 
217
189
COMMIT;
218
190
select * from test.t3;
219
 
save_master_pos;
220
 
connection slave;
221
 
sync_with_master;
 
191
sync_slave_with_master;
222
192
select * from test.t3;
223
193
 
224
194
connection master;
228
198
# First lets cleanup
229
199
SET AUTOCOMMIT=1;
230
200
SET FOREIGN_KEY_CHECKS=0;
231
 
DROP PROCEDURE IF EXISTS test.p3;
232
 
DROP PROCEDURE IF EXISTS test.p1;
233
 
DROP PROCEDURE IF EXISTS test.p2;
234
 
DROP TABLE IF EXISTS test.t1;
235
 
DROP TABLE IF EXISTS test.t2;
236
 
DROP TABLE IF EXISTS test.t3;
237
 
sync_slave_with_master;
 
201
DROP PROCEDURE test.p3;
 
202
DROP PROCEDURE test.p1;
 
203
DROP PROCEDURE test.p2;
 
204
DROP TABLE test.t1;
 
205
DROP TABLE test.t2;
 
206
DROP TABLE test.t3;
238
207
 
239
208
# End of 5.0 test case
 
209
--source include/rpl_end.inc