Merge lp:~kalebral-deactivatedaccount/drizzle/fix-622005 into lp:~drizzle-trunk/drizzle/development
- fix-622005
- Merge into development
Proposed by
Lee Bieber
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Brian Aker | ||||
Approved revision: | 1719 | ||||
Merged at revision: | 1728 | ||||
Proposed branch: | lp:~kalebral-deactivatedaccount/drizzle/fix-622005 | ||||
Merge into: | lp:~drizzle-trunk/drizzle/development | ||||
Diff against target: |
1223 lines (+198/-129) 33 files modified
plugin/filesystem_engine/tests/t/multiple_update.data (+1/-1) tests/r/distinct.result (+2/-2) tests/r/func_group.result (+2/-2) tests/r/func_in.result (+2/-2) tests/r/func_time.result (+2/-2) tests/r/greedy_optimizer.result (+20/-20) tests/r/group_min_max.result (+12/-12) tests/r/join.result (+8/-8) tests/r/join_nested.result (+32/-32) tests/r/join_outer.result (+3/-3) tests/r/key_diff.result (+17/-17) tests/r/range.result (+1/-1) tests/r/select.result (+20/-20) tests/r/subselect.result (+1/-1) tests/r/type_blob.result (+4/-4) tests/r/type_datetime.result (+2/-2) tests/t/derived.test (+3/-0) tests/t/distinct.test (+2/-0) tests/t/func_group.test (+2/-0) tests/t/func_in.test (+2/-0) tests/t/func_time.test (+2/-0) tests/t/greedy_optimizer.test (+25/-0) tests/t/group_by.test (+2/-0) tests/t/group_min_max.test (+1/-0) tests/t/join.test (+7/-0) tests/t/join_nested.test (+13/-0) tests/t/join_outer.test (+3/-0) tests/t/key_diff.test (+1/-0) tests/t/range.test (+1/-0) tests/t/select.test (+2/-0) tests/t/subselect.test (+1/-0) tests/t/type_blob.test (+1/-0) tests/t/type_datetime.test (+1/-0) |
||||
To merge this branch: | bzr merge lp:~kalebral-deactivatedaccount/drizzle/fix-622005 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Drizzle Merge Team | Pending | ||
Review via email: mp+33316@code.launchpad.net |
Commit message
Description of the change
For the feature request (https:/
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'plugin/filesystem_engine/tests/t/multiple_update.data' | |||
2 | --- plugin/filesystem_engine/tests/t/multiple_update.data 2010-06-18 04:58:30 +0000 | |||
3 | +++ plugin/filesystem_engine/tests/t/multiple_update.data 2010-08-22 01:04:46 +0000 | |||
4 | @@ -1,4 +1,4 @@ | |||
5 | 1 | 777 | ||
6 | 2 | 555 | 1 | 555 |
7 | 3 | 333 | 2 | 333 |
8 | 4 | 111 | 3 | 111 |
9 | 4 | 777 | ||
10 | 5 | 5 | ||
11 | === modified file 'tests/r/distinct.result' | |||
12 | --- tests/r/distinct.result 2010-08-09 16:31:29 +0000 | |||
13 | +++ tests/r/distinct.result 2010-08-22 01:04:46 +0000 | |||
14 | @@ -397,8 +397,8 @@ | |||
15 | 397 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID; | 397 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID; |
16 | 398 | email shipcode | 398 | email shipcode |
17 | 399 | test1@testdomain.com Z001 | 399 | test1@testdomain.com Z001 |
18 | 400 | test2@testdomain.com R002 | ||
19 | 400 | test2@testdomain.com Z001 | 401 | test2@testdomain.com Z001 |
20 | 401 | test2@testdomain.com R002 | ||
21 | 402 | test3@testdomain.com Z001 | 402 | test3@testdomain.com Z001 |
22 | 403 | SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC; | 403 | SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC; |
23 | 404 | 404 | ||
24 | @@ -529,8 +529,8 @@ | |||
25 | 529 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2 | 529 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2 |
26 | 530 | WHERE t1_1.a = t1_2.a; | 530 | WHERE t1_1.a = t1_2.a; |
27 | 531 | id select_type table type possible_keys key key_len ref rows Extra | 531 | id select_type table type possible_keys key key_len ref rows Extra |
28 | 532 | 1 SIMPLE t1_1 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer | ||
29 | 532 | 1 SIMPLE t1_2 index PRIMARY PRIMARY 4 NULL 3 Using index; Using temporary | 533 | 1 SIMPLE t1_2 index PRIMARY PRIMARY 4 NULL 3 Using index; Using temporary |
30 | 533 | 1 SIMPLE t1_1 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer | ||
31 | 534 | EXPLAIN SELECT a FROM t1 GROUP BY a; | 534 | EXPLAIN SELECT a FROM t1 GROUP BY a; |
32 | 535 | id select_type table type possible_keys key key_len ref rows Extra | 535 | id select_type table type possible_keys key key_len ref rows Extra |
33 | 536 | 1 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index | 536 | 1 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index |
34 | 537 | 537 | ||
35 | === modified file 'tests/r/func_group.result' | |||
36 | --- tests/r/func_group.result 2010-08-20 18:39:24 +0000 | |||
37 | +++ tests/r/func_group.result 2010-08-22 01:04:46 +0000 | |||
38 | @@ -192,10 +192,10 @@ | |||
39 | 192 | insert into t2 values('BBB', 20, 1.0); | 192 | insert into t2 values('BBB', 20, 1.0); |
40 | 193 | select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2; | 193 | select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2; |
41 | 194 | a1 a2 a1 a2 | 194 | a1 a2 a1 a2 |
42 | 195 | 10 NULL AAA 10 | ||
43 | 196 | 10 NULL BBB 20 | ||
44 | 195 | 10 aaa AAA 10 | 197 | 10 aaa AAA 10 |
45 | 196 | 10 aaa BBB 20 | 198 | 10 aaa BBB 20 |
46 | 197 | 10 NULL AAA 10 | ||
47 | 198 | 10 NULL BBB 20 | ||
48 | 199 | 10 bbb AAA 10 | 199 | 10 bbb AAA 10 |
49 | 200 | 10 bbb BBB 20 | 200 | 10 bbb BBB 20 |
50 | 201 | 20 zzz AAA 10 | 201 | 20 zzz AAA 10 |
51 | 202 | 202 | ||
52 | === modified file 'tests/r/func_in.result' | |||
53 | --- tests/r/func_in.result 2009-12-15 16:55:05 +0000 | |||
54 | +++ tests/r/func_in.result 2010-08-22 01:04:46 +0000 | |||
55 | @@ -349,9 +349,9 @@ | |||
56 | 349 | JOIN t2 ON t3.a=t2.a | 349 | JOIN t2 ON t3.a=t2.a |
57 | 350 | JOIN t4 WHERE t4.a IN (t1.b, t2.b); | 350 | JOIN t4 WHERE t4.a IN (t1.b, t2.b); |
58 | 351 | id select_type table type possible_keys key key_len ref rows Extra | 351 | id select_type table type possible_keys key key_len ref rows Extra |
59 | 352 | 1 SIMPLE t3 index PRIMARY PRIMARY 4 NULL 4 Using index | ||
60 | 353 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 | 352 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 |
61 | 354 | 1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer | 353 | 1 SIMPLE t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer |
62 | 354 | 1 SIMPLE t3 index PRIMARY PRIMARY 4 NULL 4 Using index | ||
63 | 355 | 1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 7 Range checked for each record (index map: 0x1) | 355 | 1 SIMPLE t4 ALL PRIMARY NULL NULL NULL 7 Range checked for each record (index map: 0x1) |
64 | 356 | SELECT STRAIGHT_JOIN * FROM t3 | 356 | SELECT STRAIGHT_JOIN * FROM t3 |
65 | 357 | JOIN t1 ON t3.a=t1.a | 357 | JOIN t1 ON t3.a=t1.a |
66 | @@ -367,9 +367,9 @@ | |||
67 | 367 | FROM t3, t1, t2 | 367 | FROM t3, t1, t2 |
68 | 368 | WHERE t3.a=t1.a AND t3.a=t2.a; | 368 | WHERE t3.a=t1.a AND t3.a=t2.a; |
69 | 369 | id select_type table type possible_keys key key_len ref rows Extra | 369 | id select_type table type possible_keys key key_len ref rows Extra |
70 | 370 | 1 PRIMARY t3 index PRIMARY PRIMARY 4 NULL 4 Using index | ||
71 | 371 | 1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 | 370 | 1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 |
72 | 372 | 1 PRIMARY t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer | 371 | 1 PRIMARY t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer |
73 | 372 | 1 PRIMARY t3 index PRIMARY PRIMARY 4 NULL 4 Using index | ||
74 | 373 | 2 DEPENDENT SUBQUERY t4 index NULL PRIMARY 4 NULL 7 Using where; Using index | 373 | 2 DEPENDENT SUBQUERY t4 index NULL PRIMARY 4 NULL 7 Using where; Using index |
75 | 374 | SELECT STRAIGHT_JOIN | 374 | SELECT STRAIGHT_JOIN |
76 | 375 | (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) | 375 | (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) |
77 | 376 | 376 | ||
78 | === modified file 'tests/r/func_time.result' | |||
79 | --- tests/r/func_time.result 2010-07-12 06:26:42 +0000 | |||
80 | +++ tests/r/func_time.result 2010-08-22 01:04:46 +0000 | |||
81 | @@ -805,18 +805,18 @@ | |||
82 | 805 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; | 805 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; |
83 | 806 | id day id day | 806 | id day id day |
84 | 807 | 1 2005-06-01 1 2005-08-01 | 807 | 1 2005-06-01 1 2005-08-01 |
85 | 808 | 3 2005-07-01 1 2005-08-01 | ||
86 | 809 | 1 2005-06-01 2 2005-06-15 | 808 | 1 2005-06-01 2 2005-06-15 |
87 | 810 | 1 2005-06-01 3 2005-07-15 | 809 | 1 2005-06-01 3 2005-07-15 |
88 | 810 | 3 2005-07-01 1 2005-08-01 | ||
89 | 811 | 3 2005-07-01 3 2005-07-15 | 811 | 3 2005-07-01 3 2005-07-15 |
90 | 812 | SELECT * FROM t1, t2 | 812 | SELECT * FROM t1, t2 |
91 | 813 | WHERE CAST(t1.day AS DATE) BETWEEN | 813 | WHERE CAST(t1.day AS DATE) BETWEEN |
92 | 814 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; | 814 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; |
93 | 815 | id day id day | 815 | id day id day |
94 | 816 | 1 2005-06-01 1 2005-08-01 | 816 | 1 2005-06-01 1 2005-08-01 |
95 | 817 | 3 2005-07-01 1 2005-08-01 | ||
96 | 818 | 1 2005-06-01 2 2005-06-15 | 817 | 1 2005-06-01 2 2005-06-15 |
97 | 819 | 1 2005-06-01 3 2005-07-15 | 818 | 1 2005-06-01 3 2005-07-15 |
98 | 819 | 3 2005-07-01 1 2005-08-01 | ||
99 | 820 | 3 2005-07-01 3 2005-07-15 | 820 | 3 2005-07-01 3 2005-07-15 |
100 | 821 | DROP TABLE t1,t2; | 821 | DROP TABLE t1,t2; |
101 | 822 | create table t1 (field DATE); | 822 | create table t1 (field DATE); |
102 | 823 | 823 | ||
103 | === modified file 'tests/r/greedy_optimizer.result' | |||
104 | --- tests/r/greedy_optimizer.result 2010-02-15 18:29:31 +0000 | |||
105 | +++ tests/r/greedy_optimizer.result 2010-08-22 01:04:46 +0000 | |||
106 | @@ -224,10 +224,10 @@ | |||
107 | 224 | Last_query_cost # | 224 | Last_query_cost # |
108 | 225 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 225 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
109 | 226 | id select_type table type possible_keys key key_len ref rows Extra | 226 | id select_type table type possible_keys key key_len ref rows Extra |
110 | 227 | 1 # t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
111 | 227 | 1 # t2 ALL NULL NULL NULL NULL 6 | 228 | 1 # t2 ALL NULL NULL NULL NULL 6 |
112 | 229 | 1 # t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
113 | 228 | 1 # t4 ALL NULL NULL NULL NULL 12 Using join buffer | 230 | 1 # t4 ALL NULL NULL NULL NULL 12 Using join buffer |
114 | 229 | 1 # t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
115 | 230 | 1 # t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
116 | 231 | 1 # t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index | 231 | 1 # t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index |
117 | 232 | 1 # t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 232 | 1 # t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
118 | 233 | 1 # t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index | 233 | 1 # t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index |
119 | @@ -236,10 +236,10 @@ | |||
120 | 236 | Last_query_cost # | 236 | Last_query_cost # |
121 | 237 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 237 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
122 | 238 | id select_type table type possible_keys key key_len ref rows Extra | 238 | id select_type table type possible_keys key key_len ref rows Extra |
123 | 239 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
124 | 239 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 240 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
125 | 241 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
126 | 240 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer | 242 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer |
127 | 241 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
128 | 242 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
129 | 243 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index | 243 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index |
130 | 244 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 244 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
131 | 245 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index | 245 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index |
132 | @@ -248,10 +248,10 @@ | |||
133 | 248 | Last_query_cost # | 248 | Last_query_cost # |
134 | 249 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 249 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
135 | 250 | id select_type table type possible_keys key key_len ref rows Extra | 250 | id select_type table type possible_keys key key_len ref rows Extra |
136 | 251 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
137 | 251 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 252 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
138 | 253 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
139 | 252 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | 254 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer |
140 | 253 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
141 | 254 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
142 | 255 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where | 255 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where |
143 | 256 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 256 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
144 | 257 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where | 257 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where |
145 | @@ -301,12 +301,12 @@ | |||
146 | 301 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 301 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
147 | 302 | id select_type table type possible_keys key key_len ref rows Extra | 302 | id select_type table type possible_keys key key_len ref rows Extra |
148 | 303 | 1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 | 303 | 1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 |
149 | 304 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer | ||
150 | 304 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | 305 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index |
151 | 306 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | ||
152 | 305 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index | 307 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index |
153 | 308 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | ||
154 | 306 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index | 309 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index |
155 | 307 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer | ||
156 | 308 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | ||
157 | 309 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | ||
158 | 310 | show status like 'Last_query_cost'; | 310 | show status like 'Last_query_cost'; |
159 | 311 | Variable_name Value | 311 | Variable_name Value |
160 | 312 | Last_query_cost # | 312 | Last_query_cost # |
161 | @@ -325,12 +325,12 @@ | |||
162 | 325 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 325 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
163 | 326 | id select_type table type possible_keys key key_len ref rows Extra | 326 | id select_type table type possible_keys key key_len ref rows Extra |
164 | 327 | 1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 | 327 | 1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 |
165 | 328 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer | ||
166 | 328 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 | 329 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 |
167 | 330 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | ||
168 | 329 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where | 331 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where |
169 | 332 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | ||
170 | 330 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where | 333 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where |
171 | 331 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer | ||
172 | 332 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | ||
173 | 333 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | ||
174 | 334 | show status like 'Last_query_cost'; | 334 | show status like 'Last_query_cost'; |
175 | 335 | Variable_name Value | 335 | Variable_name Value |
176 | 336 | Last_query_cost # | 336 | Last_query_cost # |
177 | @@ -376,10 +376,10 @@ | |||
178 | 376 | Last_query_cost # | 376 | Last_query_cost # |
179 | 377 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 377 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
180 | 378 | id select_type table type possible_keys key key_len ref rows Extra | 378 | id select_type table type possible_keys key key_len ref rows Extra |
181 | 379 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
182 | 379 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 380 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
183 | 381 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
184 | 380 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer | 382 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer |
185 | 381 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
186 | 382 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
187 | 383 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index | 383 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index |
188 | 384 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 384 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
189 | 385 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index | 385 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index |
190 | @@ -388,10 +388,10 @@ | |||
191 | 388 | Last_query_cost # | 388 | Last_query_cost # |
192 | 389 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 389 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
193 | 390 | id select_type table type possible_keys key key_len ref rows Extra | 390 | id select_type table type possible_keys key key_len ref rows Extra |
194 | 391 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
195 | 391 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 392 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
196 | 393 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
197 | 392 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer | 394 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer |
198 | 393 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
199 | 394 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index | ||
200 | 395 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index | 395 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index |
201 | 396 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 396 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
202 | 397 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index | 397 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index |
203 | @@ -400,10 +400,10 @@ | |||
204 | 400 | Last_query_cost # | 400 | Last_query_cost # |
205 | 401 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 401 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
206 | 402 | id select_type table type possible_keys key key_len ref rows Extra | 402 | id select_type table type possible_keys key key_len ref rows Extra |
207 | 403 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
208 | 403 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 404 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
209 | 405 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
210 | 404 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | 406 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer |
211 | 405 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
212 | 406 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
213 | 407 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where | 407 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where |
214 | 408 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 408 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
215 | 409 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where | 409 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where |
216 | @@ -412,10 +412,10 @@ | |||
217 | 412 | Last_query_cost # | 412 | Last_query_cost # |
218 | 413 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 413 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
219 | 414 | id select_type table type possible_keys key key_len ref rows Extra | 414 | id select_type table type possible_keys key key_len ref rows Extra |
220 | 415 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
221 | 415 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 | 416 | 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 |
222 | 417 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
223 | 416 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer | 418 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer |
224 | 417 | 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where | ||
225 | 418 | 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where | ||
226 | 419 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where | 419 | 1 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where |
227 | 420 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer | 420 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer |
228 | 421 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where | 421 | 1 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where |
229 | 422 | 422 | ||
230 | === modified file 'tests/r/group_min_max.result' | |||
231 | --- tests/r/group_min_max.result 2009-11-26 02:37:40 +0000 | |||
232 | +++ tests/r/group_min_max.result 2010-08-22 01:04:46 +0000 | |||
233 | @@ -1611,24 +1611,24 @@ | |||
234 | 1611 | select distinct t1.a1,t2.a1 from t1,t2; | 1611 | select distinct t1.a1,t2.a1 from t1,t2; |
235 | 1612 | a1 a1 | 1612 | a1 a1 |
236 | 1613 | a a | 1613 | a a |
237 | 1614 | b a | ||
238 | 1615 | c a | ||
239 | 1616 | d a | ||
240 | 1617 | a b | 1614 | a b |
241 | 1618 | b b | ||
242 | 1619 | c b | ||
243 | 1620 | d b | ||
244 | 1621 | a c | 1615 | a c |
245 | 1616 | a d | ||
246 | 1617 | a e | ||
247 | 1618 | b a | ||
248 | 1619 | b b | ||
249 | 1622 | b c | 1620 | b c |
250 | 1623 | c c | ||
251 | 1624 | d c | ||
252 | 1625 | a d | ||
253 | 1626 | b d | 1621 | b d |
254 | 1622 | b e | ||
255 | 1623 | c a | ||
256 | 1624 | c b | ||
257 | 1625 | c c | ||
258 | 1627 | c d | 1626 | c d |
259 | 1628 | d d | ||
260 | 1629 | a e | ||
261 | 1630 | b e | ||
262 | 1631 | c e | 1627 | c e |
263 | 1628 | d a | ||
264 | 1629 | d b | ||
265 | 1630 | d c | ||
266 | 1631 | d d | ||
267 | 1632 | d e | 1632 | d e |
268 | 1633 | explain select distinct a1,a2,b from t1; | 1633 | explain select distinct a1,a2,b from t1; |
269 | 1634 | id select_type table type possible_keys key key_len ref rows Extra | 1634 | id select_type table type possible_keys key key_len ref rows Extra |
270 | 1635 | 1635 | ||
271 | === modified file 'tests/r/join.result' | |||
272 | --- tests/r/join.result 2010-02-15 18:29:31 +0000 | |||
273 | +++ tests/r/join.result 2010-08-22 01:04:46 +0000 | |||
274 | @@ -599,30 +599,30 @@ | |||
275 | 599 | 3 1 2 2 | 599 | 3 1 2 2 |
276 | 600 | select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c); | 600 | select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c); |
277 | 601 | c b a b b c y c | 601 | c b a b b c y c |
278 | 602 | 10 1 2 1 1 10 11 3 | ||
279 | 602 | 10 1 2 1 1 3 11 3 | 603 | 10 1 2 1 1 3 11 3 |
281 | 603 | 10 1 2 1 1 10 11 3 | 604 | 3 1 2 1 1 10 11 3 |
282 | 604 | 3 1 2 1 1 3 11 3 | 605 | 3 1 2 1 1 3 11 3 |
284 | 605 | 3 1 2 1 1 10 11 3 | 606 | 3 2 2 1 1 10 11 3 |
285 | 606 | 3 2 2 1 1 3 11 3 | 607 | 3 2 2 1 1 3 11 3 |
286 | 607 | 3 2 2 1 1 10 11 3 | ||
287 | 608 | select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c); | 608 | select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c); |
288 | 609 | c b a b b c y c | 609 | c b a b b c y c |
289 | 610 | 10 1 2 1 1 10 11 3 | ||
290 | 610 | 10 1 2 1 1 3 11 3 | 611 | 10 1 2 1 1 3 11 3 |
292 | 611 | 10 1 2 1 1 10 11 3 | 612 | 3 1 2 1 1 10 11 3 |
293 | 612 | 3 1 2 1 1 3 11 3 | 613 | 3 1 2 1 1 3 11 3 |
295 | 613 | 3 1 2 1 1 10 11 3 | 614 | 3 2 2 1 1 10 11 3 |
296 | 614 | 3 2 2 1 1 3 11 3 | 615 | 3 2 2 1 1 3 11 3 |
297 | 615 | 3 2 2 1 1 10 11 3 | ||
298 | 616 | select * from (t1 natural join t2) join (t3 natural join t4) on a = y; | 616 | select * from (t1 natural join t2) join (t3 natural join t4) on a = y; |
299 | 617 | b c a c b y | 617 | b c a c b y |
300 | 618 | 1 10 2 3 1 2 | 618 | 1 10 2 3 1 2 |
301 | 619 | 1 3 2 3 1 2 | 619 | 1 3 2 3 1 2 |
302 | 620 | select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3; | 620 | select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3; |
303 | 621 | b c c b a b y c y z | 621 | b c c b a b y c y z |
304 | 622 | 1 10 10 1 2 1 11 3 11 4 | ||
305 | 623 | 1 10 3 1 2 1 11 3 11 4 | ||
306 | 622 | 1 3 10 1 2 1 11 3 11 4 | 624 | 1 3 10 1 2 1 11 3 11 4 |
307 | 623 | 1 10 10 1 2 1 11 3 11 4 | ||
308 | 624 | 1 3 3 1 2 1 11 3 11 4 | 625 | 1 3 3 1 2 1 11 3 11 4 |
309 | 625 | 1 10 3 1 2 1 11 3 11 4 | ||
310 | 626 | select * from t1 natural join t2 where t1.b > 0; | 626 | select * from t1 natural join t2 where t1.b > 0; |
311 | 627 | b c a | 627 | b c a |
312 | 628 | 1 10 2 | 628 | 1 10 2 |
313 | 629 | 629 | ||
314 | === modified file 'tests/r/join_nested.result' | |||
315 | --- tests/r/join_nested.result 2010-08-09 16:31:29 +0000 | |||
316 | +++ tests/r/join_nested.result 2010-08-22 01:04:46 +0000 | |||
317 | @@ -39,8 +39,8 @@ | |||
318 | 39 | FROM t3,t4; | 39 | FROM t3,t4; |
319 | 40 | a b a b | 40 | a b a b |
320 | 41 | 1 2 3 2 | 41 | 1 2 3 2 |
321 | 42 | 1 2 4 2 | ||
322 | 42 | 2 2 3 2 | 43 | 2 2 3 2 |
323 | 43 | 1 2 4 2 | ||
324 | 44 | 2 2 4 2 | 44 | 2 2 4 2 |
325 | 45 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 45 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
326 | 46 | FROM t2 | 46 | FROM t2 |
327 | @@ -108,17 +108,17 @@ | |||
328 | 108 | SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b | 108 | SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b |
329 | 109 | FROM t3,t4,t5; | 109 | FROM t3,t4,t5; |
330 | 110 | a b a b a b | 110 | a b a b a b |
331 | 111 | 1 2 3 2 2 2 | ||
332 | 111 | 1 2 3 2 3 1 | 112 | 1 2 3 2 3 1 |
334 | 112 | 2 2 3 2 3 1 | 113 | 1 2 3 2 3 3 |
335 | 114 | 1 2 4 2 2 2 | ||
336 | 113 | 1 2 4 2 3 1 | 115 | 1 2 4 2 3 1 |
339 | 114 | 2 2 4 2 3 1 | 116 | 1 2 4 2 3 3 |
338 | 115 | 1 2 3 2 2 2 | ||
340 | 116 | 2 2 3 2 2 2 | 117 | 2 2 3 2 2 2 |
344 | 117 | 1 2 4 2 2 2 | 118 | 2 2 3 2 3 1 |
342 | 118 | 2 2 4 2 2 2 | ||
343 | 119 | 1 2 3 2 3 3 | ||
345 | 120 | 2 2 3 2 3 3 | 119 | 2 2 3 2 3 3 |
347 | 121 | 1 2 4 2 3 3 | 120 | 2 2 4 2 2 2 |
348 | 121 | 2 2 4 2 3 1 | ||
349 | 122 | 2 2 4 2 3 3 | 122 | 2 2 4 2 3 3 |
350 | 123 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b | 123 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b |
351 | 124 | FROM t2 | 124 | FROM t2 |
352 | @@ -212,10 +212,10 @@ | |||
353 | 212 | a b a b | 212 | a b a b |
354 | 213 | 3 2 1 1 | 213 | 3 2 1 1 |
355 | 214 | 3 2 2 2 | 214 | 3 2 2 2 |
356 | 215 | 6 1 1 1 | ||
357 | 216 | 6 1 2 2 | ||
358 | 215 | 6 2 1 1 | 217 | 6 2 1 1 |
359 | 216 | 6 2 2 2 | 218 | 6 2 2 2 |
360 | 217 | 6 1 1 1 | ||
361 | 218 | 6 1 2 2 | ||
362 | 219 | SELECT t8.a,t8.b | 219 | SELECT t8.a,t8.b |
363 | 220 | FROM t8; | 220 | FROM t8; |
364 | 221 | a b | 221 | a b |
365 | @@ -228,11 +228,11 @@ | |||
366 | 228 | t8 | 228 | t8 |
367 | 229 | ON t7.b=t8.b AND t6.b < 10; | 229 | ON t7.b=t8.b AND t6.b < 10; |
368 | 230 | id select_type table type possible_keys key key_len ref rows filtered Extra | 230 | id select_type table type possible_keys key key_len ref rows filtered Extra |
369 | 231 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 | ||
370 | 232 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer | 231 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer |
371 | 232 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 | ||
372 | 233 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 | 233 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 |
373 | 234 | Warnings: | ||
374 | 235 | Note 1003 select `test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t7`.`b` = `test`.`t8`.`b`) and (`test`.`t6`.`b` < 10))) where 1 | 234 | Note 1003 select `test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b` from `test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t7`.`b` = `test`.`t8`.`b`) and (`test`.`t6`.`b` < 10))) where 1 |
375 | 235 | Warnings: | ||
376 | 236 | SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b | 236 | SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b |
377 | 237 | FROM (t6, t7) | 237 | FROM (t6, t7) |
378 | 238 | LEFT JOIN | 238 | LEFT JOIN |
379 | @@ -361,17 +361,17 @@ | |||
380 | 361 | WHERE t2.a > 3 AND | 361 | WHERE t2.a > 3 AND |
381 | 362 | (t6.a < 6 OR t6.c IS NULL); | 362 | (t6.a < 6 OR t6.c IS NULL); |
382 | 363 | a b a b a b a b a b a b a b | 363 | a b a b a b a b a b a b a b |
383 | 364 | 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL | ||
384 | 365 | 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL | ||
385 | 366 | 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL | ||
386 | 367 | 4 2 1 2 3 2 2 2 3 2 2 2 0 2 | 364 | 4 2 1 2 3 2 2 2 3 2 2 2 0 2 |
387 | 368 | 4 2 1 2 3 2 2 2 3 2 2 2 1 2 | 365 | 4 2 1 2 3 2 2 2 3 2 2 2 1 2 |
388 | 366 | 4 2 1 2 3 2 3 1 3 2 1 1 NULL NULL | ||
389 | 367 | 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL | ||
390 | 369 | 4 2 1 2 4 2 2 2 3 2 2 2 0 2 | 368 | 4 2 1 2 4 2 2 2 3 2 2 2 0 2 |
391 | 370 | 4 2 1 2 4 2 2 2 3 2 2 2 1 2 | 369 | 4 2 1 2 4 2 2 2 3 2 2 2 1 2 |
392 | 370 | 4 2 1 2 4 2 3 1 3 2 1 1 NULL NULL | ||
393 | 371 | 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL | ||
394 | 371 | 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2 | 372 | 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2 |
395 | 372 | 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2 | 373 | 5 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2 |
398 | 373 | 4 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL | 374 | 5 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL |
397 | 374 | 4 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL | ||
399 | 375 | 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL | 375 | 5 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL |
400 | 376 | SELECT t1.a,t1.b | 376 | SELECT t1.a,t1.b |
401 | 377 | FROM t1; | 377 | FROM t1; |
402 | @@ -644,12 +644,12 @@ | |||
403 | 644 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where | 644 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where |
404 | 645 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where | 645 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where |
405 | 646 | 1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where | 646 | 1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where |
406 | 647 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where | ||
407 | 647 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where | 648 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where |
408 | 648 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where | ||
409 | 649 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where | 649 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where |
410 | 650 | 1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer | 650 | 1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer |
411 | 651 | Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(((`test`.`t4`.`b` = `test`.`t2`.`b`) and (`test`.`t3`.`a` = 1))) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t8`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` < 10)))) on(((`test`.`t7`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` >= 2)))) on((((`test`.`t3`.`b` = 2) or isnull(`test`.`t3`.`c`)) and ((`test`.`t6`.`b` = 2) or isnull(`test`.`t6`.`c`)) and ((`test`.`t5`.`b` = `test`.`t0`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t6`.`c`) or isnull(`test`.`t8`.`c`)) and (`test`.`t1`.`a` <> 2))) join `test`.`t9` where ((`test`.`t9`.`a` = 1) and (`test`.`t1`.`b` = `test`.`t0`.`b`) and (`test`.`t0`.`a` = 1) and ((`test`.`t2`.`a` >= 4) or isnull(`test`.`t2`.`c`)) and ((`test`.`t3`.`a` < 5) or isnull(`test`.`t3`.`c`)) and ((`test`.`t4`.`b` = `test`.`t3`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t4`.`c`)) and ((`test`.`t5`.`a` >= 2) or isnull(`test`.`t5`.`c`)) and ((`test`.`t6`.`a` >= 4) or isnull(`test`.`t6`.`c`)) and ((`test`.`t7`.`a` <= 2) or isnull(`test`.`t7`.`c`)) and ((`test`.`t8`.`a` < 1) or isnull(`test`.`t8`.`c`)) and ((`test`.`t9`.`b` = `test`.`t8`.`b`) or isnull(`test`.`t8`.`c`))) | ||
412 | 651 | Warnings: | 652 | Warnings: |
413 | 652 | Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(((`test`.`t4`.`b` = `test`.`t2`.`b`) and (`test`.`t3`.`a` = 1))) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t8`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` < 10)))) on(((`test`.`t7`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` >= 2)))) on((((`test`.`t3`.`b` = 2) or isnull(`test`.`t3`.`c`)) and ((`test`.`t6`.`b` = 2) or isnull(`test`.`t6`.`c`)) and ((`test`.`t5`.`b` = `test`.`t0`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t6`.`c`) or isnull(`test`.`t8`.`c`)) and (`test`.`t1`.`a` <> 2))) join `test`.`t9` where ((`test`.`t9`.`a` = 1) and (`test`.`t1`.`b` = `test`.`t0`.`b`) and (`test`.`t0`.`a` = 1) and ((`test`.`t2`.`a` >= 4) or isnull(`test`.`t2`.`c`)) and ((`test`.`t3`.`a` < 5) or isnull(`test`.`t3`.`c`)) and ((`test`.`t4`.`b` = `test`.`t3`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t4`.`c`)) and ((`test`.`t5`.`a` >= 2) or isnull(`test`.`t5`.`c`)) and ((`test`.`t6`.`a` >= 4) or isnull(`test`.`t6`.`c`)) and ((`test`.`t7`.`a` <= 2) or isnull(`test`.`t7`.`c`)) and ((`test`.`t8`.`a` < 1) or isnull(`test`.`t8`.`c`)) and ((`test`.`t9`.`b` = `test`.`t8`.`b`) or isnull(`test`.`t8`.`c`))) | ||
414 | 653 | SELECT t9.a,t9.b | 653 | SELECT t9.a,t9.b |
415 | 654 | FROM t9; | 654 | FROM t9; |
416 | 655 | a b | 655 | a b |
417 | @@ -743,12 +743,12 @@ | |||
418 | 743 | WHERE t1.a <= 2; | 743 | WHERE t1.a <= 2; |
419 | 744 | a b a b a b | 744 | a b a b a b |
420 | 745 | 1 3 3 3 NULL NULL | 745 | 1 3 3 3 NULL NULL |
421 | 746 | 2 2 3 3 NULL NULL | ||
422 | 747 | 1 3 4 2 1 2 | 746 | 1 3 4 2 1 2 |
423 | 748 | 1 3 4 2 2 2 | 747 | 1 3 4 2 2 2 |
424 | 748 | 1 3 5 3 NULL NULL | ||
425 | 749 | 2 2 3 3 NULL NULL | ||
426 | 749 | 2 2 4 2 1 2 | 750 | 2 2 4 2 1 2 |
427 | 750 | 2 2 4 2 2 2 | 751 | 2 2 4 2 2 2 |
428 | 751 | 1 3 5 3 NULL NULL | ||
429 | 752 | 2 2 5 3 NULL NULL | 752 | 2 2 5 3 NULL NULL |
430 | 753 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b | 753 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b |
431 | 754 | FROM t1, t3 | 754 | FROM t1, t3 |
432 | @@ -758,12 +758,12 @@ | |||
433 | 758 | WHERE t1.a <= 2; | 758 | WHERE t1.a <= 2; |
434 | 759 | a b a b a b | 759 | a b a b a b |
435 | 760 | 1 3 3 3 NULL NULL | 760 | 1 3 3 3 NULL NULL |
436 | 761 | 2 2 3 3 NULL NULL | ||
437 | 762 | 1 3 4 2 1 2 | 761 | 1 3 4 2 1 2 |
438 | 763 | 1 3 4 2 2 2 | 762 | 1 3 4 2 2 2 |
439 | 763 | 1 3 5 3 NULL NULL | ||
440 | 764 | 2 2 3 3 NULL NULL | ||
441 | 764 | 2 2 4 2 1 2 | 765 | 2 2 4 2 1 2 |
442 | 765 | 2 2 4 2 2 2 | 766 | 2 2 4 2 2 2 |
443 | 766 | 1 3 5 3 NULL NULL | ||
444 | 767 | 2 2 5 3 NULL NULL | 767 | 2 2 5 3 NULL NULL |
445 | 768 | SELECT t3.a,t3.b,t4.a,t4.b | 768 | SELECT t3.a,t3.b,t4.a,t4.b |
446 | 769 | FROM t3,t4; | 769 | FROM t3,t4; |
447 | @@ -790,12 +790,12 @@ | |||
448 | 790 | WHERE t1.a <= 2; | 790 | WHERE t1.a <= 2; |
449 | 791 | a b a b a b a b | 791 | a b a b a b a b |
450 | 792 | 1 3 3 3 NULL NULL NULL NULL | 792 | 1 3 3 3 NULL NULL NULL NULL |
451 | 793 | 2 2 3 3 NULL NULL NULL NULL | ||
452 | 794 | 1 3 4 2 1 2 3 2 | 793 | 1 3 4 2 1 2 3 2 |
453 | 795 | 1 3 4 2 1 2 4 2 | 794 | 1 3 4 2 1 2 4 2 |
454 | 795 | 1 3 5 3 NULL NULL NULL NULL | ||
455 | 796 | 2 2 3 3 NULL NULL NULL NULL | ||
456 | 796 | 2 2 4 2 1 2 3 2 | 797 | 2 2 4 2 1 2 3 2 |
457 | 797 | 2 2 4 2 1 2 4 2 | 798 | 2 2 4 2 1 2 4 2 |
458 | 798 | 1 3 5 3 NULL NULL NULL NULL | ||
459 | 799 | 2 2 5 3 NULL NULL NULL NULL | 799 | 2 2 5 3 NULL NULL NULL NULL |
460 | 800 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 800 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
461 | 801 | FROM t1, (t3, t4) | 801 | FROM t1, (t3, t4) |
462 | @@ -805,12 +805,12 @@ | |||
463 | 805 | WHERE t1.a <= 2; | 805 | WHERE t1.a <= 2; |
464 | 806 | a b a b a b a b | 806 | a b a b a b a b |
465 | 807 | 1 3 3 3 NULL NULL NULL NULL | 807 | 1 3 3 3 NULL NULL NULL NULL |
466 | 808 | 2 2 3 3 NULL NULL NULL NULL | ||
467 | 809 | 1 3 4 2 1 2 3 2 | 808 | 1 3 4 2 1 2 3 2 |
468 | 810 | 1 3 4 2 1 2 4 2 | 809 | 1 3 4 2 1 2 4 2 |
469 | 810 | 1 3 5 3 NULL NULL NULL NULL | ||
470 | 811 | 2 2 3 3 NULL NULL NULL NULL | ||
471 | 811 | 2 2 4 2 1 2 3 2 | 812 | 2 2 4 2 1 2 3 2 |
472 | 812 | 2 2 4 2 1 2 4 2 | 813 | 2 2 4 2 1 2 4 2 |
473 | 813 | 1 3 5 3 NULL NULL NULL NULL | ||
474 | 814 | 2 2 5 3 NULL NULL NULL NULL | 814 | 2 2 5 3 NULL NULL NULL NULL |
475 | 815 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 815 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
476 | 816 | FROM t1, (t3, t4) | 816 | FROM t1, (t3, t4) |
477 | @@ -849,12 +849,12 @@ | |||
478 | 849 | (t1,t2) | 849 | (t1,t2) |
479 | 850 | ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b; | 850 | ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b; |
480 | 851 | id select_type table type possible_keys key key_len ref rows filtered Extra | 851 | id select_type table type possible_keys key key_len ref rows filtered Extra |
481 | 852 | 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 | ||
482 | 853 | 1 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 1 100.00 | ||
483 | 852 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 | 854 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 |
484 | 853 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer | 855 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer |
485 | 854 | 1 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 1 100.00 | ||
486 | 855 | 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 | ||
487 | 856 | Warnings: | ||
488 | 857 | Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t3` join `test`.`t4` left join (`test`.`t1` join `test`.`t2`) on(((`test`.`t3`.`a` = 1) and (`test`.`t3`.`b` = `test`.`t2`.`b`) and (`test`.`t2`.`b` = `test`.`t4`.`b`))) where 1 | 856 | Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b` from `test`.`t3` join `test`.`t4` left join (`test`.`t1` join `test`.`t2`) on(((`test`.`t3`.`a` = 1) and (`test`.`t3`.`b` = `test`.`t2`.`b`) and (`test`.`t2`.`b` = `test`.`t4`.`b`))) where 1 |
489 | 857 | Warnings: | ||
490 | 858 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 858 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
491 | 859 | FROM (t3,t4) | 859 | FROM (t3,t4) |
492 | 860 | LEFT JOIN | 860 | LEFT JOIN |
493 | @@ -911,12 +911,12 @@ | |||
494 | 911 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where | 911 | 1 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where |
495 | 912 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where | 912 | 1 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where |
496 | 913 | 1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where | 913 | 1 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where |
497 | 914 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where | ||
498 | 914 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where | 915 | 1 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where |
499 | 915 | 1 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where | ||
500 | 916 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where | 916 | 1 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where |
501 | 917 | 1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer | 917 | 1 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer |
502 | 918 | Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(((`test`.`t4`.`b` = `test`.`t2`.`b`) and (`test`.`t3`.`a` = 1))) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t8`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` < 10)))) on(((`test`.`t7`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` >= 2)))) on((((`test`.`t3`.`b` = 2) or isnull(`test`.`t3`.`c`)) and ((`test`.`t6`.`b` = 2) or isnull(`test`.`t6`.`c`)) and ((`test`.`t5`.`b` = `test`.`t0`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t6`.`c`) or isnull(`test`.`t8`.`c`)) and (`test`.`t1`.`a` <> 2))) join `test`.`t9` where ((`test`.`t9`.`a` = 1) and (`test`.`t1`.`b` = `test`.`t0`.`b`) and (`test`.`t0`.`a` = 1) and ((`test`.`t2`.`a` >= 4) or isnull(`test`.`t2`.`c`)) and ((`test`.`t3`.`a` < 5) or isnull(`test`.`t3`.`c`)) and ((`test`.`t4`.`b` = `test`.`t3`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t4`.`c`)) and ((`test`.`t5`.`a` >= 2) or isnull(`test`.`t5`.`c`)) and ((`test`.`t6`.`a` >= 4) or isnull(`test`.`t6`.`c`)) and ((`test`.`t7`.`a` <= 2) or isnull(`test`.`t7`.`c`)) and ((`test`.`t8`.`a` < 1) or isnull(`test`.`t8`.`c`)) and ((`test`.`t9`.`b` = `test`.`t8`.`b`) or isnull(`test`.`t8`.`c`))) | ||
503 | 918 | Warnings: | 919 | Warnings: |
504 | 919 | Note 1003 select `test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t5`.`a` AS `a`,`test`.`t5`.`b` AS `b`,`test`.`t6`.`a` AS `a`,`test`.`t6`.`b` AS `b`,`test`.`t7`.`a` AS `a`,`test`.`t7`.`b` AS `b`,`test`.`t8`.`a` AS `a`,`test`.`t8`.`b` AS `b`,`test`.`t9`.`a` AS `a`,`test`.`t9`.`b` AS `b` from `test`.`t0` join `test`.`t1` left join (`test`.`t2` left join (`test`.`t3` join `test`.`t4`) on(((`test`.`t4`.`b` = `test`.`t2`.`b`) and (`test`.`t3`.`a` = 1))) join `test`.`t5` left join (`test`.`t6` join `test`.`t7` left join `test`.`t8` on(((`test`.`t8`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` < 10)))) on(((`test`.`t7`.`b` = `test`.`t5`.`b`) and (`test`.`t6`.`b` >= 2)))) on((((`test`.`t3`.`b` = 2) or isnull(`test`.`t3`.`c`)) and ((`test`.`t6`.`b` = 2) or isnull(`test`.`t6`.`c`)) and ((`test`.`t5`.`b` = `test`.`t0`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t6`.`c`) or isnull(`test`.`t8`.`c`)) and (`test`.`t1`.`a` <> 2))) join `test`.`t9` where ((`test`.`t9`.`a` = 1) and (`test`.`t1`.`b` = `test`.`t0`.`b`) and (`test`.`t0`.`a` = 1) and ((`test`.`t2`.`a` >= 4) or isnull(`test`.`t2`.`c`)) and ((`test`.`t3`.`a` < 5) or isnull(`test`.`t3`.`c`)) and ((`test`.`t4`.`b` = `test`.`t3`.`b`) or isnull(`test`.`t3`.`c`) or isnull(`test`.`t4`.`c`)) and ((`test`.`t5`.`a` >= 2) or isnull(`test`.`t5`.`c`)) and ((`test`.`t6`.`a` >= 4) or isnull(`test`.`t6`.`c`)) and ((`test`.`t7`.`a` <= 2) or isnull(`test`.`t7`.`c`)) and ((`test`.`t8`.`a` < 1) or isnull(`test`.`t8`.`c`)) and ((`test`.`t9`.`b` = `test`.`t8`.`b`) or isnull(`test`.`t8`.`c`))) | ||
505 | 920 | CREATE INDEX idx_b ON t4(b); | 920 | CREATE INDEX idx_b ON t4(b); |
506 | 921 | CREATE INDEX idx_b ON t5(b); | 921 | CREATE INDEX idx_b ON t5(b); |
507 | 922 | EXPLAIN EXTENDED | 922 | EXPLAIN EXTENDED |
508 | 923 | 923 | ||
509 | === modified file 'tests/r/join_outer.result' | |||
510 | --- tests/r/join_outer.result 2010-02-15 18:29:31 +0000 | |||
511 | +++ tests/r/join_outer.result 2010-08-22 01:04:46 +0000 | |||
512 | @@ -462,19 +462,19 @@ | |||
513 | 462 | 7 green | 462 | 7 green |
514 | 463 | select * from t2 natural join t1; | 463 | select * from t2 natural join t1; |
515 | 464 | color count name | 464 | color count name |
516 | 465 | black 5 grape | ||
517 | 465 | green 10 lime | 466 | green 10 lime |
518 | 466 | green 7 lime | 467 | green 7 lime |
519 | 467 | black 5 grape | ||
520 | 468 | select t2.count, t1.name from t2 natural join t1; | 468 | select t2.count, t1.name from t2 natural join t1; |
521 | 469 | count name | 469 | count name |
522 | 470 | 10 lime | 470 | 10 lime |
523 | 471 | 5 grape | ||
524 | 471 | 7 lime | 472 | 7 lime |
525 | 472 | 5 grape | ||
526 | 473 | select t2.count, t1.name from t2 inner join t1 using (color); | 473 | select t2.count, t1.name from t2 inner join t1 using (color); |
527 | 474 | count name | 474 | count name |
528 | 475 | 10 lime | 475 | 10 lime |
529 | 476 | 5 grape | ||
530 | 476 | 7 lime | 477 | 7 lime |
531 | 477 | 5 grape | ||
532 | 478 | drop table t1; | 478 | drop table t1; |
533 | 479 | drop table t2; | 479 | drop table t2; |
534 | 480 | CREATE TABLE t1 ( | 480 | CREATE TABLE t1 ( |
535 | 481 | 481 | ||
536 | === modified file 'tests/r/key_diff.result' | |||
537 | --- tests/r/key_diff.result 2008-12-06 22:41:03 +0000 | |||
538 | +++ tests/r/key_diff.result 2010-08-22 01:04:46 +0000 | |||
539 | @@ -9,30 +9,30 @@ | |||
540 | 9 | select * from t1,t1 as t2; | 9 | select * from t1,t1 as t2; |
541 | 10 | a b a b | 10 | a b a b |
542 | 11 | A B A B | 11 | A B A B |
544 | 12 | b A A B | 12 | A B C c |
545 | 13 | A B D E | ||
546 | 14 | A B a a | ||
547 | 15 | A B b A | ||
548 | 13 | C c A B | 16 | C c A B |
549 | 17 | C c C c | ||
550 | 18 | C c D E | ||
551 | 19 | C c a a | ||
552 | 20 | C c b A | ||
553 | 14 | D E A B | 21 | D E A B |
554 | 22 | D E C c | ||
555 | 23 | D E D E | ||
556 | 24 | D E a a | ||
557 | 25 | D E b A | ||
558 | 15 | a a A B | 26 | a a A B |
563 | 16 | A B b A | 27 | a a C c |
564 | 17 | b A b A | 28 | a a D E |
565 | 18 | C c b A | 29 | a a a a |
562 | 19 | D E b A | ||
566 | 20 | a a b A | 30 | a a b A |
568 | 21 | A B C c | 31 | b A A B |
569 | 22 | b A C c | 32 | b A C c |
570 | 23 | C c C c | ||
571 | 24 | D E C c | ||
572 | 25 | a a C c | ||
573 | 26 | A B D E | ||
574 | 27 | b A D E | 33 | b A D E |
575 | 28 | C c D E | ||
576 | 29 | D E D E | ||
577 | 30 | a a D E | ||
578 | 31 | A B a a | ||
579 | 32 | b A a a | 34 | b A a a |
583 | 33 | C c a a | 35 | b A b A |
581 | 34 | D E a a | ||
582 | 35 | a a a a | ||
584 | 36 | explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; | 36 | explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; |
585 | 37 | id select_type table type possible_keys key key_len ref rows Extra | 37 | id select_type table type possible_keys key key_len ref rows Extra |
586 | 38 | 1 SIMPLE t1 ALL a NULL NULL NULL 5 | 38 | 1 SIMPLE t1 ALL a NULL NULL NULL 5 |
587 | 39 | 39 | ||
588 | === modified file 'tests/r/range.result' | |||
589 | --- tests/r/range.result 2010-08-09 16:31:29 +0000 | |||
590 | +++ tests/r/range.result 2010-08-22 01:04:46 +0000 | |||
591 | @@ -694,8 +694,8 @@ | |||
592 | 694 | v.oxrootid ='d8c4177d09f8b11f5.52725521' AND | 694 | v.oxrootid ='d8c4177d09f8b11f5.52725521' AND |
593 | 695 | s.oxleft > v.oxleft AND s.oxleft < v.oxright; | 695 | s.oxleft > v.oxleft AND s.oxleft < v.oxright; |
594 | 696 | id select_type table type possible_keys key key_len ref rows Extra | 696 | id select_type table type possible_keys key key_len ref rows Extra |
595 | 697 | 1 SIMPLE # ALL OXLEFT NULL NULL # # Range checked for each record (index map: 0x4) | ||
596 | 697 | 1 SIMPLE # ALL OXLEFT,OXRIGHT,OXROOTID NULL NULL # # Using where | 698 | 1 SIMPLE # ALL OXLEFT,OXRIGHT,OXROOTID NULL NULL # # Using where |
597 | 698 | 1 SIMPLE # ALL OXLEFT NULL NULL # # Range checked for each record (index map: 0x4) | ||
598 | 699 | SELECT s.oxid FROM t1 v, t1 s | 699 | SELECT s.oxid FROM t1 v, t1 s |
599 | 700 | WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND | 700 | WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND |
600 | 701 | v.oxrootid ='d8c4177d09f8b11f5.52725521' AND | 701 | v.oxrootid ='d8c4177d09f8b11f5.52725521' AND |
601 | 702 | 702 | ||
602 | === modified file 'tests/r/select.result' | |||
603 | --- tests/r/select.result 2010-08-19 20:36:05 +0000 | |||
604 | +++ tests/r/select.result 2010-08-22 01:04:46 +0000 | |||
605 | @@ -1272,29 +1272,29 @@ | |||
606 | 1272 | select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505; | 1272 | select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505; |
607 | 1273 | fld1 fld1 | 1273 | fld1 fld1 |
608 | 1274 | 250501 250501 | 1274 | 250501 250501 |
609 | 1275 | 250501 250502 | ||
610 | 1276 | 250501 250503 | ||
611 | 1277 | 250501 250504 | ||
612 | 1278 | 250501 250505 | ||
613 | 1275 | 250502 250501 | 1279 | 250502 250501 |
614 | 1280 | 250502 250502 | ||
615 | 1281 | 250502 250503 | ||
616 | 1282 | 250502 250504 | ||
617 | 1283 | 250502 250505 | ||
618 | 1276 | 250503 250501 | 1284 | 250503 250501 |
619 | 1285 | 250503 250502 | ||
620 | 1286 | 250503 250503 | ||
621 | 1287 | 250503 250504 | ||
622 | 1288 | 250503 250505 | ||
623 | 1277 | 250504 250501 | 1289 | 250504 250501 |
624 | 1290 | 250504 250502 | ||
625 | 1291 | 250504 250503 | ||
626 | 1292 | 250504 250504 | ||
627 | 1293 | 250504 250505 | ||
628 | 1278 | 250505 250501 | 1294 | 250505 250501 |
629 | 1279 | 250501 250502 | ||
630 | 1280 | 250502 250502 | ||
631 | 1281 | 250503 250502 | ||
632 | 1282 | 250504 250502 | ||
633 | 1283 | 250505 250502 | 1295 | 250505 250502 |
634 | 1284 | 250501 250503 | ||
635 | 1285 | 250502 250503 | ||
636 | 1286 | 250503 250503 | ||
637 | 1287 | 250504 250503 | ||
638 | 1288 | 250505 250503 | 1296 | 250505 250503 |
639 | 1289 | 250501 250504 | ||
640 | 1290 | 250502 250504 | ||
641 | 1291 | 250503 250504 | ||
642 | 1292 | 250504 250504 | ||
643 | 1293 | 250505 250504 | 1297 | 250505 250504 |
644 | 1294 | 250501 250505 | ||
645 | 1295 | 250502 250505 | ||
646 | 1296 | 250503 250505 | ||
647 | 1297 | 250504 250505 | ||
648 | 1298 | 250505 250505 | 1298 | 250505 250505 |
649 | 1299 | insert into t2 (fld1, companynr) values (999999,99); | 1299 | insert into t2 (fld1, companynr) values (999999,99); |
650 | 1300 | select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null; | 1300 | select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null; |
651 | @@ -2014,13 +2014,13 @@ | |||
652 | 2014 | select * from (t1 as t2 left join t1 as t3 using (a)), t1; | 2014 | select * from (t1 as t2 left join t1 as t3 using (a)), t1; |
653 | 2015 | a a | 2015 | a a |
654 | 2016 | 1 1 | 2016 | 1 1 |
655 | 2017 | 1 2 | ||
656 | 2018 | 1 3 | ||
657 | 2017 | 2 1 | 2019 | 2 1 |
658 | 2020 | 2 2 | ||
659 | 2021 | 2 3 | ||
660 | 2018 | 3 1 | 2022 | 3 1 |
661 | 2019 | 1 2 | ||
662 | 2020 | 2 2 | ||
663 | 2021 | 3 2 | 2023 | 3 2 |
664 | 2022 | 1 3 | ||
665 | 2023 | 2 3 | ||
666 | 2024 | 3 3 | 2024 | 3 3 |
667 | 2025 | select * from t1, (t1 as t2 left join t1 as t3 using (a)); | 2025 | select * from t1, (t1 as t2 left join t1 as t3 using (a)); |
668 | 2026 | a a | 2026 | a a |
669 | 2027 | 2027 | ||
670 | === modified file 'tests/r/subselect.result' | |||
671 | --- tests/r/subselect.result 2010-08-19 20:36:05 +0000 | |||
672 | +++ tests/r/subselect.result 2010-08-22 01:04:46 +0000 | |||
673 | @@ -4526,8 +4526,8 @@ | |||
674 | 4526 | SELECT * FROM t1 JOIN (t1 t1a) ON 1; | 4526 | SELECT * FROM t1 JOIN (t1 t1a) ON 1; |
675 | 4527 | a a | 4527 | a a |
676 | 4528 | 1 1 | 4528 | 1 1 |
677 | 4529 | 1 2 | ||
678 | 4529 | 2 1 | 4530 | 2 1 |
679 | 4530 | 1 2 | ||
680 | 4531 | 2 2 | 4531 | 2 2 |
681 | 4532 | SELECT * FROM t1 JOIN ((t1 t1a)) ON 1; | 4532 | SELECT * FROM t1 JOIN ((t1 t1a)) ON 1; |
682 | 4533 | a a | 4533 | a a |
683 | 4534 | 4534 | ||
684 | === modified file 'tests/r/type_blob.result' | |||
685 | --- tests/r/type_blob.result 2010-07-27 00:57:00 +0000 | |||
686 | +++ tests/r/type_blob.result 2010-08-22 01:04:46 +0000 | |||
687 | @@ -46,13 +46,13 @@ | |||
688 | 46 | select * from t1,t1 as t2; | 46 | select * from t1,t1 as t2; |
689 | 47 | nr b str nr b str | 47 | nr b str nr b str |
690 | 48 | 1 a A 1 a A | 48 | 1 a A 1 a A |
691 | 49 | 1 a A 2 bbb BBB | ||
692 | 50 | 1 a A 3 ccc CCC | ||
693 | 49 | 2 bbb BBB 1 a A | 51 | 2 bbb BBB 1 a A |
694 | 52 | 2 bbb BBB 2 bbb BBB | ||
695 | 53 | 2 bbb BBB 3 ccc CCC | ||
696 | 50 | 3 ccc CCC 1 a A | 54 | 3 ccc CCC 1 a A |
697 | 51 | 1 a A 2 bbb BBB | ||
698 | 52 | 2 bbb BBB 2 bbb BBB | ||
699 | 53 | 3 ccc CCC 2 bbb BBB | 55 | 3 ccc CCC 2 bbb BBB |
700 | 54 | 1 a A 3 ccc CCC | ||
701 | 55 | 2 bbb BBB 3 ccc CCC | ||
702 | 56 | 3 ccc CCC 3 ccc CCC | 56 | 3 ccc CCC 3 ccc CCC |
703 | 57 | drop table t1; | 57 | drop table t1; |
704 | 58 | create table t1 (a text); | 58 | create table t1 (a text); |
705 | 59 | 59 | ||
706 | === modified file 'tests/r/type_datetime.result' | |||
707 | --- tests/r/type_datetime.result 2010-07-28 23:57:35 +0000 | |||
708 | +++ tests/r/type_datetime.result 2010-08-22 01:04:46 +0000 | |||
709 | @@ -268,10 +268,10 @@ | |||
710 | 268 | select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1')); | 268 | select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1')); |
711 | 269 | f1 f2 f3 | 269 | f1 f2 f3 |
712 | 270 | 2001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:00 | 270 | 2001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:00 |
713 | 271 | 2001-01-01 2001-01-01 00:00:00 2001-02-03 12:34:56 | ||
714 | 272 | 2001-01-01 2001-01-01 00:00:00 2002-04-06 11:22:33 | ||
715 | 271 | 2001-01-01 2001-02-03 12:34:56 2001-01-01 00:00:00 | 273 | 2001-01-01 2001-02-03 12:34:56 2001-01-01 00:00:00 |
716 | 272 | 2001-01-01 2002-04-06 11:22:33 2001-01-01 00:00:00 | 274 | 2001-01-01 2002-04-06 11:22:33 2001-01-01 00:00:00 |
717 | 273 | 2001-01-01 2001-01-01 00:00:00 2001-02-03 12:34:56 | ||
718 | 274 | 2001-01-01 2001-01-01 00:00:00 2002-04-06 11:22:33 | ||
719 | 275 | select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02')); | 275 | select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02')); |
720 | 276 | f1 | 276 | f1 |
721 | 277 | 2001-01-01 | 277 | 2001-01-01 |
722 | 278 | 278 | ||
723 | === modified file 'tests/t/derived.test' | |||
724 | --- tests/t/derived.test 2009-08-04 02:33:47 +0000 | |||
725 | +++ tests/t/derived.test 2010-08-22 01:04:46 +0000 | |||
726 | @@ -27,6 +27,7 @@ | |||
727 | 27 | SELECT 1 FROM (SELECT 1) a WHERE a=2; | 27 | SELECT 1 FROM (SELECT 1) a WHERE a=2; |
728 | 28 | --error 1054 | 28 | --error 1054 |
729 | 29 | SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a; | 29 | SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a; |
730 | 30 | --sort_result | ||
731 | 30 | select * from t1 as x1, (select * from t1) as x2; | 31 | select * from t1 as x1, (select * from t1) as x2; |
732 | 31 | explain select * from t1 as x1, (select * from t1) as x2; | 32 | explain select * from t1 as x1, (select * from t1) as x2; |
733 | 32 | drop table if exists t2,t3; | 33 | drop table if exists t2,t3; |
734 | @@ -116,12 +117,14 @@ | |||
735 | 116 | create table t1 (E1 INTEGER NOT NULL, E2 INTEGER NOT NULL, E3 INTEGER NOT NULL, PRIMARY KEY(E1) | 117 | create table t1 (E1 INTEGER NOT NULL, E2 INTEGER NOT NULL, E3 INTEGER NOT NULL, PRIMARY KEY(E1) |
736 | 117 | ); | 118 | ); |
737 | 118 | insert into t1 VALUES(1,1,1), (2,2,1); | 119 | insert into t1 VALUES(1,1,1), (2,2,1); |
738 | 120 | --sort_result | ||
739 | 119 | select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2; | 121 | select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2; |
740 | 120 | explain select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2; | 122 | explain select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2; |
741 | 121 | drop table t1; | 123 | drop table t1; |
742 | 122 | 124 | ||
743 | 123 | create table t1 (a int); | 125 | create table t1 (a int); |
744 | 124 | insert into t1 values (1),(2); | 126 | insert into t1 values (1),(2); |
745 | 127 | --sort_result | ||
746 | 125 | select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b; | 128 | select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b; |
747 | 126 | explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b; | 129 | explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b; |
748 | 127 | drop table t1; | 130 | drop table t1; |
749 | 128 | 131 | ||
750 | === modified file 'tests/t/distinct.test' | |||
751 | --- tests/t/distinct.test 2010-02-15 18:29:31 +0000 | |||
752 | +++ tests/t/distinct.test 2010-08-22 01:04:46 +0000 | |||
753 | @@ -235,6 +235,7 @@ | |||
754 | 235 | (1, 'Z001'), | 235 | (1, 'Z001'), |
755 | 236 | (2, 'R002'); | 236 | (2, 'R002'); |
756 | 237 | 237 | ||
757 | 238 | --sorted_result | ||
758 | 238 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID; | 239 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID; |
759 | 239 | SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC; | 240 | SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC; |
760 | 240 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC; | 241 | SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC; |
761 | @@ -345,6 +346,7 @@ | |||
762 | 345 | EXPLAIN SELECT DISTINCT a FROM t1; | 346 | EXPLAIN SELECT DISTINCT a FROM t1; |
763 | 346 | EXPLAIN SELECT DISTINCT a,b FROM t1; | 347 | EXPLAIN SELECT DISTINCT a,b FROM t1; |
764 | 347 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2; | 348 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2; |
765 | 349 | --sorted_result | ||
766 | 348 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2 | 350 | EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2 |
767 | 349 | WHERE t1_1.a = t1_2.a; | 351 | WHERE t1_1.a = t1_2.a; |
768 | 350 | EXPLAIN SELECT a FROM t1 GROUP BY a; | 352 | EXPLAIN SELECT a FROM t1 GROUP BY a; |
769 | 351 | 353 | ||
770 | === modified file 'tests/t/func_group.test' | |||
771 | --- tests/t/func_group.test 2010-08-18 21:57:15 +0000 | |||
772 | +++ tests/t/func_group.test 2010-08-22 01:04:46 +0000 | |||
773 | @@ -128,6 +128,7 @@ | |||
774 | 128 | 128 | ||
775 | 129 | insert into t2 values('AAA', 10, 0.5); | 129 | insert into t2 values('AAA', 10, 0.5); |
776 | 130 | insert into t2 values('BBB', 20, 1.0); | 130 | insert into t2 values('BBB', 20, 1.0); |
777 | 131 | --sorted_result | ||
778 | 131 | select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2; | 132 | select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2; |
779 | 132 | 133 | ||
780 | 133 | select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9; | 134 | select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9; |
781 | @@ -629,6 +630,7 @@ | |||
782 | 629 | CREATE TABLE t2 (a INT PRIMARY KEY, b INT); | 630 | CREATE TABLE t2 (a INT PRIMARY KEY, b INT); |
783 | 630 | INSERT INTO t2 VALUES (1,1), (3,3); | 631 | INSERT INTO t2 VALUES (1,1), (3,3); |
784 | 631 | 632 | ||
785 | 633 | --sorted_result | ||
786 | 632 | SELECT | 634 | SELECT |
787 | 633 | (SELECT SUM(c.a) FROM t1 ttt, t2 ccc | 635 | (SELECT SUM(c.a) FROM t1 ttt, t2 ccc |
788 | 634 | WHERE ttt.a = ccc.b AND ttt.a = t.a GROUP BY ttt.a) AS minid | 636 | WHERE ttt.a = ccc.b AND ttt.a = t.a GROUP BY ttt.a) AS minid |
789 | 635 | 637 | ||
790 | === modified file 'tests/t/func_in.test' | |||
791 | --- tests/t/func_in.test 2009-07-03 13:13:20 +0000 | |||
792 | +++ tests/t/func_in.test 2010-08-22 01:04:46 +0000 | |||
793 | @@ -262,6 +262,7 @@ | |||
794 | 262 | INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002), | 262 | INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002), |
795 | 263 | (1003,1003),(1004,1004); | 263 | (1003,1003),(1004,1004); |
796 | 264 | 264 | ||
797 | 265 | --sorted_result | ||
798 | 265 | EXPLAIN SELECT STRAIGHT_JOIN * FROM t3 | 266 | EXPLAIN SELECT STRAIGHT_JOIN * FROM t3 |
799 | 266 | JOIN t1 ON t3.a=t1.a | 267 | JOIN t1 ON t3.a=t1.a |
800 | 267 | JOIN t2 ON t3.a=t2.a | 268 | JOIN t2 ON t3.a=t2.a |
801 | @@ -272,6 +273,7 @@ | |||
802 | 272 | JOIN t2 ON t3.a=t2.a | 273 | JOIN t2 ON t3.a=t2.a |
803 | 273 | JOIN t4 WHERE t4.a IN (t1.b, t2.b); | 274 | JOIN t4 WHERE t4.a IN (t1.b, t2.b); |
804 | 274 | 275 | ||
805 | 276 | --sorted_result | ||
806 | 275 | EXPLAIN SELECT STRAIGHT_JOIN | 277 | EXPLAIN SELECT STRAIGHT_JOIN |
807 | 276 | (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) | 278 | (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) |
808 | 277 | FROM t3, t1, t2 | 279 | FROM t3, t1, t2 |
809 | 278 | 280 | ||
810 | === modified file 'tests/t/func_time.test' | |||
811 | --- tests/t/func_time.test 2009-06-16 00:53:22 +0000 | |||
812 | +++ tests/t/func_time.test 2010-08-22 01:04:46 +0000 | |||
813 | @@ -498,9 +498,11 @@ | |||
814 | 498 | INSERT INTO t2 VALUES | 498 | INSERT INTO t2 VALUES |
815 | 499 | (1, '2005-08-01'), (2, '2005-06-15'), (3, '2005-07-15'); | 499 | (1, '2005-08-01'), (2, '2005-06-15'), (3, '2005-07-15'); |
816 | 500 | 500 | ||
817 | 501 | --sorted_result | ||
818 | 501 | SELECT * FROM t1, t2 | 502 | SELECT * FROM t1, t2 |
819 | 502 | WHERE t1.day BETWEEN | 503 | WHERE t1.day BETWEEN |
820 | 503 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; | 504 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; |
821 | 505 | --sorted_result | ||
822 | 504 | SELECT * FROM t1, t2 | 506 | SELECT * FROM t1, t2 |
823 | 505 | WHERE CAST(t1.day AS DATE) BETWEEN | 507 | WHERE CAST(t1.day AS DATE) BETWEEN |
824 | 506 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; | 508 | '2005.09.01' - INTERVAL 6 MONTH AND t2.day; |
825 | 507 | 509 | ||
826 | === modified file 'tests/t/greedy_optimizer.test' | |||
827 | --- tests/t/greedy_optimizer.test 2010-02-15 18:29:31 +0000 | |||
828 | +++ tests/t/greedy_optimizer.test 2010-08-22 01:04:46 +0000 | |||
829 | @@ -173,18 +173,23 @@ | |||
830 | 173 | # 6-table join, chain | 173 | # 6-table join, chain |
831 | 174 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; | 174 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; |
832 | 175 | --replace_column 2 # | 175 | --replace_column 2 # |
833 | 176 | --sorted_result | ||
834 | 176 | show status like 'Last_query_cost'; | 177 | show status like 'Last_query_cost'; |
835 | 177 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; | 178 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; |
836 | 178 | --replace_column 2 # | 179 | --replace_column 2 # |
837 | 180 | --sorted_result | ||
838 | 179 | show status like 'Last_query_cost'; | 181 | show status like 'Last_query_cost'; |
839 | 180 | # 6-table join, star | 182 | # 6-table join, star |
840 | 183 | --sorted_result | ||
841 | 181 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 184 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
842 | 182 | --replace_column 2 # | 185 | --replace_column 2 # |
843 | 183 | show status like 'Last_query_cost'; | 186 | show status like 'Last_query_cost'; |
844 | 187 | --sorted_result | ||
845 | 184 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 188 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
846 | 185 | --replace_column 2 # | 189 | --replace_column 2 # |
847 | 186 | show status like 'Last_query_cost'; | 190 | show status like 'Last_query_cost'; |
848 | 187 | # 6-table join, clique | 191 | # 6-table join, clique |
849 | 192 | --sorted_result | ||
850 | 188 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 193 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
851 | 189 | --replace_column 2 # | 194 | --replace_column 2 # |
852 | 190 | show status like 'Last_query_cost'; | 195 | show status like 'Last_query_cost'; |
853 | @@ -202,6 +207,7 @@ | |||
854 | 202 | select @@optimizer_search_depth; | 207 | select @@optimizer_search_depth; |
855 | 203 | 208 | ||
856 | 204 | # 6-table join, chain | 209 | # 6-table join, chain |
857 | 210 | --sorted_result | ||
858 | 205 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; | 211 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; |
859 | 206 | --replace_column 2 # | 212 | --replace_column 2 # |
860 | 207 | show status like 'Last_query_cost'; | 213 | show status like 'Last_query_cost'; |
861 | @@ -210,15 +216,19 @@ | |||
862 | 210 | show status like 'Last_query_cost'; | 216 | show status like 'Last_query_cost'; |
863 | 211 | # 6-table join, star | 217 | # 6-table join, star |
864 | 212 | --replace_column 2 # | 218 | --replace_column 2 # |
865 | 219 | --sorted_result | ||
866 | 213 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 220 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
867 | 214 | --replace_column 2 # | 221 | --replace_column 2 # |
868 | 215 | show status like 'Last_query_cost'; | 222 | show status like 'Last_query_cost'; |
869 | 223 | --sorted_result | ||
870 | 216 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 224 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
871 | 217 | --replace_column 2 # | 225 | --replace_column 2 # |
872 | 218 | show status like 'Last_query_cost'; | 226 | show status like 'Last_query_cost'; |
873 | 227 | --sorted_result | ||
874 | 219 | # 6-table join, clique | 228 | # 6-table join, clique |
875 | 220 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 229 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
876 | 221 | --replace_column 2 # | 230 | --replace_column 2 # |
877 | 231 | --sorted_result | ||
878 | 222 | show status like 'Last_query_cost'; | 232 | show status like 'Last_query_cost'; |
879 | 223 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 233 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
880 | 224 | --replace_column 2 # | 234 | --replace_column 2 # |
881 | @@ -228,22 +238,30 @@ | |||
882 | 228 | select @@optimizer_search_depth; | 238 | select @@optimizer_search_depth; |
883 | 229 | 239 | ||
884 | 230 | # 6-table join, chain | 240 | # 6-table join, chain |
885 | 241 | --sorted_result | ||
886 | 231 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; | 242 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; |
887 | 232 | --replace_column 2 # | 243 | --replace_column 2 # |
888 | 244 | --sorted_result | ||
889 | 233 | show status like 'Last_query_cost'; | 245 | show status like 'Last_query_cost'; |
890 | 234 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; | 246 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71; |
891 | 235 | --replace_column 2 # | 247 | --replace_column 2 # |
892 | 248 | --sorted_result | ||
893 | 236 | show status like 'Last_query_cost'; | 249 | show status like 'Last_query_cost'; |
894 | 237 | # 6-table join, star | 250 | # 6-table join, star |
895 | 251 | --sorted_result | ||
896 | 238 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 252 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
897 | 239 | --replace_column 2 # | 253 | --replace_column 2 # |
898 | 254 | --sorted_result | ||
899 | 240 | show status like 'Last_query_cost'; | 255 | show status like 'Last_query_cost'; |
900 | 241 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 256 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
901 | 242 | --replace_column 2 # | 257 | --replace_column 2 # |
902 | 258 | --sorted_result | ||
903 | 243 | show status like 'Last_query_cost'; | 259 | show status like 'Last_query_cost'; |
904 | 244 | # 6-table join, clique | 260 | # 6-table join, clique |
905 | 261 | --sorted_result | ||
906 | 245 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 262 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
907 | 246 | --replace_column 2 # | 263 | --replace_column 2 # |
908 | 264 | --sorted_result | ||
909 | 247 | show status like 'Last_query_cost'; | 265 | show status like 'Last_query_cost'; |
910 | 248 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 266 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
911 | 249 | --replace_column 2 # | 267 | --replace_column 2 # |
912 | @@ -260,16 +278,20 @@ | |||
913 | 260 | --replace_column 2 # | 278 | --replace_column 2 # |
914 | 261 | show status like 'Last_query_cost'; | 279 | show status like 'Last_query_cost'; |
915 | 262 | # 6-table join, star | 280 | # 6-table join, star |
916 | 281 | --sorted_result | ||
917 | 263 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 282 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
918 | 264 | --replace_column 2 # | 283 | --replace_column 2 # |
919 | 265 | show status like 'Last_query_cost'; | 284 | show status like 'Last_query_cost'; |
920 | 285 | --sorted_result | ||
921 | 266 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 286 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
922 | 267 | --replace_column 2 # | 287 | --replace_column 2 # |
923 | 268 | show status like 'Last_query_cost'; | 288 | show status like 'Last_query_cost'; |
924 | 269 | # 6-table join, clique | 289 | # 6-table join, clique |
925 | 290 | --sorted_result | ||
926 | 270 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 291 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
927 | 271 | --replace_column 2 # | 292 | --replace_column 2 # |
928 | 272 | show status like 'Last_query_cost'; | 293 | show status like 'Last_query_cost'; |
929 | 294 | --sorted_result | ||
930 | 273 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 295 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
931 | 274 | --replace_column 2 # | 296 | --replace_column 2 # |
932 | 275 | show status like 'Last_query_cost'; | 297 | show status like 'Last_query_cost'; |
933 | @@ -289,11 +311,14 @@ | |||
934 | 289 | --replace_column 2 # | 311 | --replace_column 2 # |
935 | 290 | show status like 'Last_query_cost'; | 312 | show status like 'Last_query_cost'; |
936 | 291 | # 6-table join, star | 313 | # 6-table join, star |
937 | 314 | --sorted_result | ||
938 | 292 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 315 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
939 | 293 | --replace_column 2 # | 316 | --replace_column 2 # |
940 | 317 | --sorted_result | ||
941 | 294 | show status like 'Last_query_cost'; | 318 | show status like 'Last_query_cost'; |
942 | 295 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; | 319 | explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71; |
943 | 296 | --replace_column 2 # | 320 | --replace_column 2 # |
944 | 321 | --sorted_result | ||
945 | 297 | show status like 'Last_query_cost'; | 322 | show status like 'Last_query_cost'; |
946 | 298 | # 6-table join, clique | 323 | # 6-table join, clique |
947 | 299 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; | 324 | explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76; |
948 | 300 | 325 | ||
949 | === modified file 'tests/t/group_by.test' | |||
950 | --- tests/t/group_by.test 2010-08-19 01:24:09 +0000 | |||
951 | +++ tests/t/group_by.test 2010-08-22 01:04:46 +0000 | |||
952 | @@ -400,7 +400,9 @@ | |||
953 | 400 | insert into t2 values (1,3),(3,1),(2,2),(1,1); | 400 | insert into t2 values (1,3),(3,1),(2,2),(1,1); |
954 | 401 | select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b; | 401 | select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b; |
955 | 402 | select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL; | 402 | select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL; |
956 | 403 | --sorted_result | ||
957 | 403 | explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b; | 404 | explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b; |
958 | 405 | --sorted_result | ||
959 | 404 | explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL; | 406 | explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL; |
960 | 405 | drop table t1,t2; | 407 | drop table t1,t2; |
961 | 406 | 408 | ||
962 | 407 | 409 | ||
963 | === modified file 'tests/t/group_min_max.test' | |||
964 | --- tests/t/group_min_max.test 2009-11-26 02:37:40 +0000 | |||
965 | +++ tests/t/group_min_max.test 2010-08-22 01:04:46 +0000 | |||
966 | @@ -523,6 +523,7 @@ | |||
967 | 523 | # BUG #8532 - SELECT DISTINCT a, a causes server to crash | 523 | # BUG #8532 - SELECT DISTINCT a, a causes server to crash |
968 | 524 | select distinct a1,a1 from t1; | 524 | select distinct a1,a1 from t1; |
969 | 525 | select distinct a2,a1,a2,a1 from t1; | 525 | select distinct a2,a1,a2,a1 from t1; |
970 | 526 | --sorted_result | ||
971 | 526 | select distinct t1.a1,t2.a1 from t1,t2; | 527 | select distinct t1.a1,t2.a1 from t1,t2; |
972 | 527 | 528 | ||
973 | 528 | 529 | ||
974 | 529 | 530 | ||
975 | === modified file 'tests/t/join.test' | |||
976 | --- tests/t/join.test 2010-02-15 18:29:31 +0000 | |||
977 | +++ tests/t/join.test 2010-08-22 01:04:46 +0000 | |||
978 | @@ -248,6 +248,7 @@ | |||
979 | 248 | PRIMARY KEY (id) | 248 | PRIMARY KEY (id) |
980 | 249 | ) ENGINE=MyISAM; | 249 | ) ENGINE=MyISAM; |
981 | 250 | INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5'); | 250 | INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5'); |
982 | 251 | --sorted_result | ||
983 | 251 | select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2; | 252 | select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2; |
984 | 252 | drop table t1,t2; | 253 | drop table t1,t2; |
985 | 253 | 254 | ||
986 | @@ -400,9 +401,11 @@ | |||
987 | 400 | from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c; | 401 | from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c; |
988 | 401 | 402 | ||
989 | 402 | # Views with bigger natural join | 403 | # Views with bigger natural join |
990 | 404 | --sorted_result | ||
991 | 403 | select * from t1 natural join (t2 natural join t3); | 405 | select * from t1 natural join (t2 natural join t3); |
992 | 404 | 406 | ||
993 | 405 | # Nested natural/using joins. | 407 | # Nested natural/using joins. |
994 | 408 | --sorted_result | ||
995 | 406 | select * from (t1 natural join t2) natural join (t3 natural join t4); | 409 | select * from (t1 natural join t2) natural join (t3 natural join t4); |
996 | 407 | select * from (t1 natural join t2) natural left join (t3 natural join t4); | 410 | select * from (t1 natural join t2) natural left join (t3 natural join t4); |
997 | 408 | select * from (t3 natural join t4) natural right join (t1 natural join t2); | 411 | select * from (t3 natural join t4) natural right join (t1 natural join t2); |
998 | @@ -443,11 +446,14 @@ | |||
999 | 443 | select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c; | 446 | select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c; |
1000 | 444 | select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c; | 447 | select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c; |
1001 | 445 | select * from t1 natural join (t2 join t4 on b + 1 = y); | 448 | select * from t1 natural join (t2 join t4 on b + 1 = y); |
1002 | 449 | --sorted_result | ||
1003 | 446 | select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c); | 450 | select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c); |
1004 | 447 | 451 | ||
1005 | 448 | # MySQL extension - 'join ... on' over nested comma operator | 452 | # MySQL extension - 'join ... on' over nested comma operator |
1006 | 453 | --sorted_result | ||
1007 | 449 | select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c); | 454 | select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c); |
1008 | 450 | select * from (t1 natural join t2) join (t3 natural join t4) on a = y; | 455 | select * from (t1 natural join t2) join (t3 natural join t4) on a = y; |
1009 | 456 | --sorted_result | ||
1010 | 451 | select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3; | 457 | select * from ((t3 join (t1 join t2 on c > a) on t3.b < t2.a) join t4 on y > t1.c) join t5 on z = t1.b + 3; |
1011 | 452 | 458 | ||
1012 | 453 | # MySQL extension - refererence qualified coalesced columns | 459 | # MySQL extension - refererence qualified coalesced columns |
1013 | @@ -456,6 +462,7 @@ | |||
1014 | 456 | select * from (t4 natural join t5) natural join t1 where t4.y > 7; | 462 | select * from (t4 natural join t5) natural join t1 where t4.y > 7; |
1015 | 457 | select * from t1 natural left join (t4 natural join t5) where t4.y > 7; | 463 | select * from t1 natural left join (t4 natural join t5) where t4.y > 7; |
1016 | 458 | select * from (t4 natural join t5) natural right join t1 where t4.y > 7; | 464 | select * from (t4 natural join t5) natural right join t1 where t4.y > 7; |
1017 | 465 | --sorted_result | ||
1018 | 459 | select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b; | 466 | select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b; |
1019 | 460 | 467 | ||
1020 | 461 | # MySQL extension - select qualified columns of NJ columns | 468 | # MySQL extension - select qualified columns of NJ columns |
1021 | 462 | 469 | ||
1022 | === modified file 'tests/t/join_nested.test' | |||
1023 | --- tests/t/join_nested.test 2008-12-06 22:41:03 +0000 | |||
1024 | +++ tests/t/join_nested.test 2010-08-22 01:04:46 +0000 | |||
1025 | @@ -35,6 +35,7 @@ | |||
1026 | 35 | SELECT t4.a,t4.b | 35 | SELECT t4.a,t4.b |
1027 | 36 | FROM t4; | 36 | FROM t4; |
1028 | 37 | 37 | ||
1029 | 38 | --sorted_result | ||
1030 | 38 | SELECT t3.a,t3.b,t4.a,t4.b | 39 | SELECT t3.a,t3.b,t4.a,t4.b |
1031 | 39 | FROM t3,t4; | 40 | FROM t3,t4; |
1032 | 40 | 41 | ||
1033 | @@ -75,6 +76,7 @@ | |||
1034 | 75 | SELECT t5.a,t5.b | 76 | SELECT t5.a,t5.b |
1035 | 76 | FROM t5; | 77 | FROM t5; |
1036 | 77 | 78 | ||
1037 | 79 | --sorted_result | ||
1038 | 78 | SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b | 80 | SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b |
1039 | 79 | FROM t3,t4,t5; | 81 | FROM t3,t4,t5; |
1040 | 80 | 82 | ||
1041 | @@ -122,12 +124,14 @@ | |||
1042 | 122 | SELECT t7.a,t7.b | 124 | SELECT t7.a,t7.b |
1043 | 123 | FROM t7; | 125 | FROM t7; |
1044 | 124 | 126 | ||
1045 | 127 | --sorted_result | ||
1046 | 125 | SELECT t6.a,t6.b,t7.a,t7.b | 128 | SELECT t6.a,t6.b,t7.a,t7.b |
1047 | 126 | FROM t6,t7; | 129 | FROM t6,t7; |
1048 | 127 | 130 | ||
1049 | 128 | SELECT t8.a,t8.b | 131 | SELECT t8.a,t8.b |
1050 | 129 | FROM t8; | 132 | FROM t8; |
1051 | 130 | 133 | ||
1052 | 134 | --sorted_result | ||
1053 | 131 | EXPLAIN EXTENDED | 135 | EXPLAIN EXTENDED |
1054 | 132 | SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b | 136 | SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b |
1055 | 133 | FROM (t6, t7) | 137 | FROM (t6, t7) |
1056 | @@ -155,6 +159,7 @@ | |||
1057 | 155 | ) | 159 | ) |
1058 | 156 | ON t6.b >= 2 AND t5.b=t7.b; | 160 | ON t6.b >= 2 AND t5.b=t7.b; |
1059 | 157 | 161 | ||
1060 | 162 | --select_sorted | ||
1061 | 158 | SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b | 163 | SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b |
1062 | 159 | FROM t5 | 164 | FROM t5 |
1063 | 160 | LEFT JOIN | 165 | LEFT JOIN |
1064 | @@ -189,6 +194,7 @@ | |||
1065 | 189 | ) | 194 | ) |
1066 | 190 | ON t6.b >= 2 AND t5.b=t7.b; | 195 | ON t6.b >= 2 AND t5.b=t7.b; |
1067 | 191 | 196 | ||
1068 | 197 | --sorted_result | ||
1069 | 192 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, | 198 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, |
1070 | 193 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b | 199 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b |
1071 | 194 | FROM t2 | 200 | FROM t2 |
1072 | @@ -313,6 +319,7 @@ | |||
1073 | 313 | t0.b=t1.b AND | 319 | t0.b=t1.b AND |
1074 | 314 | (t2.a >= 4 OR t2.c IS NULL); | 320 | (t2.a >= 4 OR t2.c IS NULL); |
1075 | 315 | 321 | ||
1076 | 322 | --sorted_result | ||
1077 | 316 | EXPLAIN EXTENDED | 323 | EXPLAIN EXTENDED |
1078 | 317 | SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, | 324 | SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, |
1079 | 318 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b | 325 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b |
1080 | @@ -402,6 +409,7 @@ | |||
1081 | 402 | t3 | 409 | t3 |
1082 | 403 | ON t2.b=t3.b; | 410 | ON t2.b=t3.b; |
1083 | 404 | 411 | ||
1084 | 412 | --sorted_result | ||
1085 | 405 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b | 413 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b |
1086 | 406 | FROM t1, t2 | 414 | FROM t1, t2 |
1087 | 407 | LEFT JOIN | 415 | LEFT JOIN |
1088 | @@ -409,6 +417,7 @@ | |||
1089 | 409 | ON t2.b=t3.b | 417 | ON t2.b=t3.b |
1090 | 410 | WHERE t1.a <= 2; | 418 | WHERE t1.a <= 2; |
1091 | 411 | 419 | ||
1092 | 420 | --sorted_result | ||
1093 | 412 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b | 421 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b |
1094 | 413 | FROM t1, t3 | 422 | FROM t1, t3 |
1095 | 414 | RIGHT JOIN | 423 | RIGHT JOIN |
1096 | @@ -425,6 +434,7 @@ | |||
1097 | 425 | (t3, t4) | 434 | (t3, t4) |
1098 | 426 | ON t3.a=1 AND t2.b=t4.b; | 435 | ON t3.a=1 AND t2.b=t4.b; |
1099 | 427 | 436 | ||
1100 | 437 | --sorted_result | ||
1101 | 428 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 438 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
1102 | 429 | FROM t1, t2 | 439 | FROM t1, t2 |
1103 | 430 | LEFT JOIN | 440 | LEFT JOIN |
1104 | @@ -432,6 +442,7 @@ | |||
1105 | 432 | ON t3.a=1 AND t2.b=t4.b | 442 | ON t3.a=1 AND t2.b=t4.b |
1106 | 433 | WHERE t1.a <= 2; | 443 | WHERE t1.a <= 2; |
1107 | 434 | 444 | ||
1108 | 445 | --sorted_result | ||
1109 | 435 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 446 | SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
1110 | 436 | FROM t1, (t3, t4) | 447 | FROM t1, (t3, t4) |
1111 | 437 | RIGHT JOIN | 448 | RIGHT JOIN |
1112 | @@ -456,6 +467,7 @@ | |||
1113 | 456 | 467 | ||
1114 | 457 | CREATE INDEX idx_b ON t2(b); | 468 | CREATE INDEX idx_b ON t2(b); |
1115 | 458 | 469 | ||
1116 | 470 | --sorted_result | ||
1117 | 459 | EXPLAIN EXTENDED | 471 | EXPLAIN EXTENDED |
1118 | 460 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b | 472 | SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b |
1119 | 461 | FROM (t3,t4) | 473 | FROM (t3,t4) |
1120 | @@ -469,6 +481,7 @@ | |||
1121 | 469 | (t1,t2) | 481 | (t1,t2) |
1122 | 470 | ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b; | 482 | ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b; |
1123 | 471 | 483 | ||
1124 | 484 | --sorted_result | ||
1125 | 472 | EXPLAIN EXTENDED | 485 | EXPLAIN EXTENDED |
1126 | 473 | SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, | 486 | SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b, |
1127 | 474 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b | 487 | t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b |
1128 | 475 | 488 | ||
1129 | === modified file 'tests/t/join_outer.test' | |||
1130 | --- tests/t/join_outer.test 2010-02-15 18:29:31 +0000 | |||
1131 | +++ tests/t/join_outer.test 2010-08-22 01:04:46 +0000 | |||
1132 | @@ -344,8 +344,11 @@ | |||
1133 | 344 | insert into t2 values (7, 'green'); | 344 | insert into t2 values (7, 'green'); |
1134 | 345 | select * from t1; | 345 | select * from t1; |
1135 | 346 | select * from t2; | 346 | select * from t2; |
1136 | 347 | --sorted_result | ||
1137 | 347 | select * from t2 natural join t1; | 348 | select * from t2 natural join t1; |
1138 | 349 | --sorted_result | ||
1139 | 348 | select t2.count, t1.name from t2 natural join t1; | 350 | select t2.count, t1.name from t2 natural join t1; |
1140 | 351 | --sorted_result | ||
1141 | 349 | select t2.count, t1.name from t2 inner join t1 using (color); | 352 | select t2.count, t1.name from t2 inner join t1 using (color); |
1142 | 350 | drop table t1; | 353 | drop table t1; |
1143 | 351 | drop table t2; | 354 | drop table t2; |
1144 | 352 | 355 | ||
1145 | === modified file 'tests/t/key_diff.test' | |||
1146 | --- tests/t/key_diff.test 2008-12-06 22:41:03 +0000 | |||
1147 | +++ tests/t/key_diff.test 2010-08-22 01:04:46 +0000 | |||
1148 | @@ -14,6 +14,7 @@ | |||
1149 | 14 | 14 | ||
1150 | 15 | INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a'); | 15 | INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a'); |
1151 | 16 | 16 | ||
1152 | 17 | --sorted_result | ||
1153 | 17 | select * from t1,t1 as t2; | 18 | select * from t1,t1 as t2; |
1154 | 18 | explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; | 19 | explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; |
1155 | 19 | #select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; | 20 | #select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B; |
1156 | 20 | 21 | ||
1157 | === modified file 'tests/t/range.test' | |||
1158 | --- tests/t/range.test 2010-05-20 06:32:31 +0000 | |||
1159 | +++ tests/t/range.test 2010-08-22 01:04:46 +0000 | |||
1160 | @@ -556,6 +556,7 @@ | |||
1161 | 556 | 'd8c4177d09f8b11f5.52725521'); | 556 | 'd8c4177d09f8b11f5.52725521'); |
1162 | 557 | 557 | ||
1163 | 558 | --replace_column 3 # 8 # 9 # | 558 | --replace_column 3 # 8 # 9 # |
1164 | 559 | --sorted_result | ||
1165 | 559 | EXPLAIN | 560 | EXPLAIN |
1166 | 560 | SELECT s.oxid FROM t1 v, t1 s | 561 | SELECT s.oxid FROM t1 v, t1 s |
1167 | 561 | WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND | 562 | WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND |
1168 | 562 | 563 | ||
1169 | === modified file 'tests/t/select.test' | |||
1170 | --- tests/t/select.test 2010-04-03 07:02:51 +0000 | |||
1171 | +++ tests/t/select.test 2010-08-22 01:04:46 +0000 | |||
1172 | @@ -1535,6 +1535,7 @@ | |||
1173 | 1535 | # | 1535 | # |
1174 | 1536 | 1536 | ||
1175 | 1537 | select * from t1,t1 t12; | 1537 | select * from t1,t1 t12; |
1176 | 1538 | --sorted_result | ||
1177 | 1538 | select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505; | 1539 | select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505; |
1178 | 1539 | 1540 | ||
1179 | 1540 | # | 1541 | # |
1180 | @@ -1828,6 +1829,7 @@ | |||
1181 | 1828 | insert into t1 values (); | 1829 | insert into t1 values (); |
1182 | 1829 | insert into t1 values (); | 1830 | insert into t1 values (); |
1183 | 1830 | # , | 1831 | # , |
1184 | 1832 | --sorted_result | ||
1185 | 1831 | select * from (t1 as t2 left join t1 as t3 using (a)), t1; | 1833 | select * from (t1 as t2 left join t1 as t3 using (a)), t1; |
1186 | 1832 | select * from t1, (t1 as t2 left join t1 as t3 using (a)); | 1834 | select * from t1, (t1 as t2 left join t1 as t3 using (a)); |
1187 | 1833 | # stright_join | 1835 | # stright_join |
1188 | 1834 | 1836 | ||
1189 | === modified file 'tests/t/subselect.test' | |||
1190 | --- tests/t/subselect.test 2010-03-03 20:57:45 +0000 | |||
1191 | +++ tests/t/subselect.test 2010-08-22 01:04:46 +0000 | |||
1192 | @@ -3119,6 +3119,7 @@ | |||
1193 | 3119 | --error ER_PARSE_ERROR | 3119 | --error ER_PARSE_ERROR |
1194 | 3120 | SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1; | 3120 | SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1; |
1195 | 3121 | 3121 | ||
1196 | 3122 | --sorted_result | ||
1197 | 3122 | SELECT * FROM t1 JOIN (t1 t1a) ON 1; | 3123 | SELECT * FROM t1 JOIN (t1 t1a) ON 1; |
1198 | 3123 | SELECT * FROM t1 JOIN ((t1 t1a)) ON 1; | 3124 | SELECT * FROM t1 JOIN ((t1 t1a)) ON 1; |
1199 | 3124 | 3125 | ||
1200 | 3125 | 3126 | ||
1201 | === modified file 'tests/t/type_blob.test' | |||
1202 | --- tests/t/type_blob.test 2009-06-16 00:46:49 +0000 | |||
1203 | +++ tests/t/type_blob.test 2010-08-22 01:04:46 +0000 | |||
1204 | @@ -54,6 +54,7 @@ | |||
1205 | 54 | insert into t1 values (null,"bbb","BBB"); | 54 | insert into t1 values (null,"bbb","BBB"); |
1206 | 55 | insert into t1 values (null,"ccc","CCC"); | 55 | insert into t1 values (null,"ccc","CCC"); |
1207 | 56 | select last_insert_id(); | 56 | select last_insert_id(); |
1208 | 57 | --sorted_result | ||
1209 | 57 | select * from t1,t1 as t2; | 58 | select * from t1,t1 as t2; |
1210 | 58 | 59 | ||
1211 | 59 | drop table t1; | 60 | drop table t1; |
1212 | 60 | 61 | ||
1213 | === modified file 'tests/t/type_datetime.test' | |||
1214 | --- tests/t/type_datetime.test 2010-02-03 21:54:38 +0000 | |||
1215 | +++ tests/t/type_datetime.test 2010-08-22 01:04:46 +0000 | |||
1216 | @@ -231,6 +231,7 @@ | |||
1217 | 231 | create table t3(f3 varchar(20)); | 231 | create table t3(f3 varchar(20)); |
1218 | 232 | insert into t3 select * from t2; | 232 | insert into t3 select * from t2; |
1219 | 233 | select * from t2,t3 where f2 in (f3,'03-04-05'); | 233 | select * from t2,t3 where f2 in (f3,'03-04-05'); |
1220 | 234 | --sorted_result | ||
1221 | 234 | select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1')); | 235 | select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1')); |
1222 | 235 | select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02')); | 236 | select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02')); |
1223 | 236 | drop table t1,t2,t3; | 237 | drop table t1,t2,t3; |