3 --source include/have_partition.inc
5 --echo # Additional tests
for WL#5217 by QA, testplan 1.1
8 --source suite/parts/inc/partition-dml_cr_tab.inc
9 --source suite/parts/inc/partition-dml_ins_tab.inc
11 --source suite/parts/inc/partition-dml_cr_tab.inc
12 --source suite/parts/inc/partition-dml_ins_tab.inc
16 GRANT ALL PRIVILEGES ON
test.* TO test_user_1 IDENTIFIED BY
'testpw';
18 connect (session1, localhost, test_user_1,
'testpw',
test);
20 SELECT t1.a, t2.b FROM t1 PARTITION (`p0-29`), t2
25 SELECT t1.a, t2.b FROM t1 PARTITION (`p0-29`), t2
29 SELECT * FROM t1 PARTITION (`p0-29`);
31 SELECT * FROM t2 PARTITION (`p30-299`);
33 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`),
34 t2 PARTITION (`p30-299`);
37 SELECT * FROM t1 PARTITION (subp3);
39 SELECT * FROM t2 PARTITION (subp6);
41 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (subp3),
45 SELECT * FROM t1 PARTITION (subp3,subp5);
47 SELECT * FROM t2 PARTITION (subp6,subp8);
49 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (subp3,subp5),
50 t2 PARTITION (subp6,subp8);
52 DELETE FROM t2 PARTITION (`p30-299`);
55 SELECT * FROM t1 PARTITION (`p0-29`);
57 SELECT * FROM t2 PARTITION (`p30-299`);
59 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`),
60 t2 PARTITION (`p30-299`);
63 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
64 t1 PARTITION (`p0-29`,`p30-299`)
70 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
73 t2 PARTITION (`p0-29`,`p30-299`)
77 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
78 t1 PARTITION (`p0-29`,`p30-299`)
84 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
87 t2 PARTITION (`p0-29`,`p30-299`)
90 DELETE FROM t1 PARTITION (`p0-29`);
93 SELECT * FROM t1 PARTITION (`p0-29`);
95 SELECT * FROM t2 PARTITION (`p30-299`);
97 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`),
98 t2 PARTITION (`p30-299`);
100 INSERT INTO t1 VALUES (1,'t1-p0-29-ins');
103 SELECT * FROM t1 PARTITION (`p0-29`);
105 SELECT * FROM t2 PARTITION (`p30-299`);
107 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`),
108 t2 PARTITION (`p30-299`);
110 INSERT INTO t2 VALUES (32,'t2-p30-299-ins');
113 SELECT * FROM t1 PARTITION (`p0-29`);
115 SELECT * FROM t2 PARTITION (`p30-299`);
117 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`),
118 t2 PARTITION (`p30-299`);
120 DELETE FROM t1 PARTITION (`p30-299`);
121 INSERT INTO t1 VALUES (31,'t1-p30-299-ins');
122 DELETE FROM t2 PARTITION (`p0-29`);
123 INSERT INTO t2 VALUES (2,'t2-p0-29-ins');
126 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
128 SELECT * FROM t2 PARTITION (`p0-29`,`p30-299`);
130 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM t1 PARTITION (`p0-29`,`p30-299`),
131 t2 PARTITION (`p0-29`,`p30-299`);
134 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
135 t1 PARTITION (`p0-29`,`p30-299`)
137 t2 PARTITION (`p0-29`,`p30-299`);
140 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
141 t1 PARTITION (`p0-29`,`p30-299`)
143 t2 PARTITION (`p0-29`,`p30-299`);
146 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
147 t1 PARTITION (`p0-29`,`p30-299`)
149 t2 PARTITION (`p0-29`,`p30-299`)
153 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
154 t1 PARTITION (`p0-29`,`p30-299`)
156 t2 PARTITION (`p0-29`,`p30-299`);
159 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
160 t1 PARTITION (`p0-29`,`p30-299`)
162 t2 PARTITION (`p0-29`,`p30-299`)
166 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
167 t1 PARTITION (`p0-29`,`p30-299`)
169 t2 PARTITION (`p0-29`,`p30-299`)
172 INSERT INTO t1 VALUES (32,'t2-p30-299-ins');
173 INSERT INTO t2 VALUES (1,'t1-p0-29-ins');
176 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
177 t1 PARTITION (`p0-29`,`p30-299`)
179 t2 PARTITION (`p0-29`,`p30-299`)
183 SELECT t1.a AS t1a,t2.a AS t2a,t1.b AS t1b,t2.b AS t2b FROM
184 t1 PARTITION (`p0-29`,`p30-299`)
186 t2 PARTITION (`p0-29`,`p30-299`);
192 DROP USER test_user_1;