Merge lp:~kalebral-deactivatedaccount/drizzle/fix-622005 into lp:~drizzle-trunk/drizzle/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
Reviewer Review Type Date Requested Status
Drizzle Merge Team Pending
Review via email: mp+33316@code.launchpad.net

Description of the change

For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size) that is requesting the ability to cap various buffers, we first tried setting the join buffer to 1 to see how that would affect the test results and expose test results that need to sorted (by adding --sorted_result).

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
=== modified file 'plugin/filesystem_engine/tests/t/multiple_update.data'
--- plugin/filesystem_engine/tests/t/multiple_update.data 2010-06-18 04:58:30 +0000
+++ plugin/filesystem_engine/tests/t/multiple_update.data 2010-08-22 01:04:46 +0000
@@ -1,4 +1,4 @@
1777
25551555
33332333
41113111
4777
55
=== modified file 'tests/r/distinct.result'
--- tests/r/distinct.result 2010-08-09 16:31:29 +0000
+++ tests/r/distinct.result 2010-08-22 01:04:46 +0000
@@ -397,8 +397,8 @@
397SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;397SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
398email shipcode398email shipcode
399test1@testdomain.com Z001399test1@testdomain.com Z001
400test2@testdomain.com R002
400test2@testdomain.com Z001401test2@testdomain.com Z001
401test2@testdomain.com R002
402test3@testdomain.com Z001402test3@testdomain.com Z001
403SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;403SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
404email404email
@@ -529,8 +529,8 @@
529EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2529EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
530WHERE t1_1.a = t1_2.a;530WHERE t1_1.a = t1_2.a;
531id select_type table type possible_keys key key_len ref rows Extra531id select_type table type possible_keys key key_len ref rows Extra
5321 SIMPLE t1_1 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer
5321 SIMPLE t1_2 index PRIMARY PRIMARY 4 NULL 3 Using index; Using temporary5331 SIMPLE t1_2 index PRIMARY PRIMARY 4 NULL 3 Using index; Using temporary
5331 SIMPLE t1_1 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer
534EXPLAIN SELECT a FROM t1 GROUP BY a;534EXPLAIN SELECT a FROM t1 GROUP BY a;
535id select_type table type possible_keys key key_len ref rows Extra535id select_type table type possible_keys key key_len ref rows Extra
5361 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index5361 SIMPLE t1 index NULL PRIMARY 4 NULL 3 Using index
537537
=== modified file 'tests/r/func_group.result'
--- tests/r/func_group.result 2010-08-20 18:39:24 +0000
+++ tests/r/func_group.result 2010-08-22 01:04:46 +0000
@@ -192,10 +192,10 @@
192insert into t2 values('BBB', 20, 1.0);192insert into t2 values('BBB', 20, 1.0);
193select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;193select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;
194a1 a2 a1 a2194a1 a2 a1 a2
19510 NULL AAA 10
19610 NULL BBB 20
19510 aaa AAA 1019710 aaa AAA 10
19610 aaa BBB 2019810 aaa BBB 20
19710 NULL AAA 10
19810 NULL BBB 20
19910 bbb AAA 1019910 bbb AAA 10
20010 bbb BBB 2020010 bbb BBB 20
20120 zzz AAA 1020120 zzz AAA 10
202202
=== modified file 'tests/r/func_in.result'
--- tests/r/func_in.result 2009-12-15 16:55:05 +0000
+++ tests/r/func_in.result 2010-08-22 01:04:46 +0000
@@ -349,9 +349,9 @@
349JOIN t2 ON t3.a=t2.a349JOIN t2 ON t3.a=t2.a
350JOIN t4 WHERE t4.a IN (t1.b, t2.b);350JOIN t4 WHERE t4.a IN (t1.b, t2.b);
351id select_type table type possible_keys key key_len ref rows Extra351id select_type table type possible_keys key key_len ref rows Extra
3521 SIMPLE t3 index PRIMARY PRIMARY 4 NULL 4 Using index
3531 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 3521 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
3541 SIMPLE t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer3531 SIMPLE t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer
3541 SIMPLE t3 index PRIMARY PRIMARY 4 NULL 4 Using index
3551 SIMPLE t4 ALL PRIMARY NULL NULL NULL 7 Range checked for each record (index map: 0x1)3551 SIMPLE t4 ALL PRIMARY NULL NULL NULL 7 Range checked for each record (index map: 0x1)
356SELECT STRAIGHT_JOIN * FROM t3 356SELECT STRAIGHT_JOIN * FROM t3
357JOIN t1 ON t3.a=t1.a 357JOIN t1 ON t3.a=t1.a
@@ -367,9 +367,9 @@
367FROM t3, t1, t2367FROM t3, t1, t2
368WHERE t3.a=t1.a AND t3.a=t2.a;368WHERE t3.a=t1.a AND t3.a=t2.a;
369id select_type table type possible_keys key key_len ref rows Extra369id select_type table type possible_keys key key_len ref rows Extra
3701 PRIMARY t3 index PRIMARY PRIMARY 4 NULL 4 Using index
3711 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1 3701 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t3.a 1
3721 PRIMARY t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer3711 PRIMARY t2 ALL PRIMARY NULL NULL NULL 5 Using where; Using join buffer
3721 PRIMARY t3 index PRIMARY PRIMARY 4 NULL 4 Using index
3732 DEPENDENT SUBQUERY t4 index NULL PRIMARY 4 NULL 7 Using where; Using index3732 DEPENDENT SUBQUERY t4 index NULL PRIMARY 4 NULL 7 Using where; Using index
374SELECT STRAIGHT_JOIN 374SELECT STRAIGHT_JOIN
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))
376376
=== modified file 'tests/r/func_time.result'
--- tests/r/func_time.result 2010-07-12 06:26:42 +0000
+++ tests/r/func_time.result 2010-08-22 01:04:46 +0000
@@ -805,18 +805,18 @@
805'2005.09.01' - INTERVAL 6 MONTH AND t2.day;805'2005.09.01' - INTERVAL 6 MONTH AND t2.day;
806id day id day806id day id day
8071 2005-06-01 1 2005-08-018071 2005-06-01 1 2005-08-01
8083 2005-07-01 1 2005-08-01
8091 2005-06-01 2 2005-06-158081 2005-06-01 2 2005-06-15
8101 2005-06-01 3 2005-07-158091 2005-06-01 3 2005-07-15
8103 2005-07-01 1 2005-08-01
8113 2005-07-01 3 2005-07-158113 2005-07-01 3 2005-07-15
812SELECT * FROM t1, t2 812SELECT * FROM t1, t2
813WHERE CAST(t1.day AS DATE) BETWEEN 813WHERE CAST(t1.day AS DATE) BETWEEN
814'2005.09.01' - INTERVAL 6 MONTH AND t2.day;814'2005.09.01' - INTERVAL 6 MONTH AND t2.day;
815id day id day815id day id day
8161 2005-06-01 1 2005-08-018161 2005-06-01 1 2005-08-01
8173 2005-07-01 1 2005-08-01
8181 2005-06-01 2 2005-06-158171 2005-06-01 2 2005-06-15
8191 2005-06-01 3 2005-07-158181 2005-06-01 3 2005-07-15
8193 2005-07-01 1 2005-08-01
8203 2005-07-01 3 2005-07-158203 2005-07-01 3 2005-07-15
821DROP TABLE t1,t2;821DROP TABLE t1,t2;
822create table t1 (field DATE);822create table t1 (field DATE);
823823
=== modified file 'tests/r/greedy_optimizer.result'
--- tests/r/greedy_optimizer.result 2010-02-15 18:29:31 +0000
+++ tests/r/greedy_optimizer.result 2010-08-22 01:04:46 +0000
@@ -224,10 +224,10 @@
224Last_query_cost #224Last_query_cost #
225explain 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;225explain 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;
226id select_type table type possible_keys key key_len ref rows Extra226id select_type table type possible_keys key key_len ref rows Extra
2271 # t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2271 # t2 ALL NULL NULL NULL NULL 6 2281 # t2 ALL NULL NULL NULL NULL 6
2291 # t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
2281 # t4 ALL NULL NULL NULL NULL 12 Using join buffer2301 # t4 ALL NULL NULL NULL NULL 12 Using join buffer
2291 # t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2301 # t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
2311 # t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index2311 # t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
2321 # t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer2321 # t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
2331 # t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index2331 # t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
@@ -236,10 +236,10 @@
236Last_query_cost #236Last_query_cost #
237explain 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;237explain 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;
238id select_type table type possible_keys key key_len ref rows Extra238id select_type table type possible_keys key key_len ref rows Extra
2391 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2391 SIMPLE t2 ALL NULL NULL NULL NULL 6 2401 SIMPLE t2 ALL NULL NULL NULL NULL 6
2411 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
2401 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer2421 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer
2411 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2421 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
2431 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index2431 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
2441 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer2441 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
2451 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index2451 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
@@ -248,10 +248,10 @@
248Last_query_cost #248Last_query_cost #
249explain 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;249explain 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;
250id select_type table type possible_keys key key_len ref rows Extra250id select_type table type possible_keys key key_len ref rows Extra
2511 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2511 SIMPLE t2 ALL NULL NULL NULL NULL 6 2521 SIMPLE t2 ALL NULL NULL NULL NULL 6
2531 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
2521 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer2541 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
2531 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
2541 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
2551 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where2551 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
2561 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer2561 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
2571 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where2571 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
@@ -301,12 +301,12 @@
301explain 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;301explain 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;
302id select_type table type possible_keys key key_len ref rows Extra302id select_type table type possible_keys key key_len ref rows Extra
3031 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 3031 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3
3041 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer
3041 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index3051 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
3061 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
3051 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index3071 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
3081 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
3061 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index3091 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
3071 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer
3081 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
3091 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
310show status like 'Last_query_cost';310show status like 'Last_query_cost';
311Variable_name Value311Variable_name Value
312Last_query_cost #312Last_query_cost #
@@ -325,12 +325,12 @@
325explain 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;325explain 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;
326id select_type table type possible_keys key key_len ref rows Extra326id select_type table type possible_keys key key_len ref rows Extra
3271 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3 3271 SIMPLE t1 ALL PRIMARY NULL NULL NULL 3
3281 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer
3281 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 3291 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1
3301 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
3291 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where3311 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
3321 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
3301 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where3331 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
3311 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using join buffer
3321 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
3331 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
334show status like 'Last_query_cost';334show status like 'Last_query_cost';
335Variable_name Value335Variable_name Value
336Last_query_cost #336Last_query_cost #
@@ -376,10 +376,10 @@
376Last_query_cost #376Last_query_cost #
377explain 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;377explain 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;
378id select_type table type possible_keys key key_len ref rows Extra378id select_type table type possible_keys key key_len ref rows Extra
3791 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
3791 SIMPLE t2 ALL NULL NULL NULL NULL 6 3801 SIMPLE t2 ALL NULL NULL NULL NULL 6
3811 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
3801 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer3821 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer
3811 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
3821 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
3831 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index3831 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
3841 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer3841 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
3851 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index3851 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
@@ -388,10 +388,10 @@
388Last_query_cost #388Last_query_cost #
389explain 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;389explain 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;
390id select_type table type possible_keys key key_len ref rows Extra390id select_type table type possible_keys key key_len ref rows Extra
3911 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
3911 SIMPLE t2 ALL NULL NULL NULL NULL 6 3921 SIMPLE t2 ALL NULL NULL NULL NULL 6
3931 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
3921 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer3941 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using join buffer
3931 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
3941 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using index
3951 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index3951 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using index
3961 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer3961 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
3971 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index3971 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using index
@@ -400,10 +400,10 @@
400Last_query_cost #400Last_query_cost #
401explain 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;401explain 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;
402id select_type table type possible_keys key key_len ref rows Extra402id select_type table type possible_keys key key_len ref rows Extra
4031 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
4031 SIMPLE t2 ALL NULL NULL NULL NULL 6 4041 SIMPLE t2 ALL NULL NULL NULL NULL 6
4051 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
4041 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer4061 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
4051 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
4061 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
4071 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where4071 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
4081 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer4081 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
4091 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where4091 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
@@ -412,10 +412,10 @@
412Last_query_cost #412Last_query_cost #
413explain 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;413explain 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;
414id select_type table type possible_keys key key_len ref rows Extra414id select_type table type possible_keys key key_len ref rows Extra
4151 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
4151 SIMPLE t2 ALL NULL NULL NULL NULL 6 4161 SIMPLE t2 ALL NULL NULL NULL NULL 6
4171 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
4161 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer4181 SIMPLE t4 ALL NULL NULL NULL NULL 12 Using where; Using join buffer
4171 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.c21 1 Using where
4181 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t1.c12 1 Using where
4191 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where4191 SIMPLE t5 eq_ref PRIMARY PRIMARY 4 test.t1.c14 1 Using where
4201 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer4201 SIMPLE t6 ALL NULL NULL NULL NULL 18 Using where; Using join buffer
4211 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where4211 SIMPLE t7 eq_ref PRIMARY PRIMARY 4 test.t1.c16 1 Using where
422422
=== modified file 'tests/r/group_min_max.result'
--- tests/r/group_min_max.result 2009-11-26 02:37:40 +0000
+++ tests/r/group_min_max.result 2010-08-22 01:04:46 +0000
@@ -1611,24 +1611,24 @@
1611select distinct t1.a1,t2.a1 from t1,t2;1611select distinct t1.a1,t2.a1 from t1,t2;
1612a1 a11612a1 a1
1613a a1613a a
1614b a
1615c a
1616d a
1617a b1614a b
1618b b
1619c b
1620d b
1621a c1615a c
1616a d
1617a e
1618b a
1619b b
1622b c1620b c
1623c c
1624d c
1625a d
1626b d1621b d
1622b e
1623c a
1624c b
1625c c
1627c d1626c d
1628d d
1629a e
1630b e
1631c e1627c e
1628d a
1629d b
1630d c
1631d d
1632d e1632d e
1633explain select distinct a1,a2,b from t1;1633explain select distinct a1,a2,b from t1;
1634id select_type table type possible_keys key key_len ref rows Extra1634id select_type table type possible_keys key key_len ref rows Extra
16351635
=== modified file 'tests/r/join.result'
--- tests/r/join.result 2010-02-15 18:29:31 +0000
+++ tests/r/join.result 2010-08-22 01:04:46 +0000
@@ -599,30 +599,30 @@
5993 1 2 25993 1 2 2
600select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);600select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);
601c b a b b c y c601c b a b b c y c
60210 1 2 1 1 10 11 3
60210 1 2 1 1 3 11 360310 1 2 1 1 3 11 3
60310 1 2 1 1 10 11 36043 1 2 1 1 10 11 3
6043 1 2 1 1 3 11 36053 1 2 1 1 3 11 3
6053 1 2 1 1 10 11 36063 2 2 1 1 10 11 3
6063 2 2 1 1 3 11 36073 2 2 1 1 3 11 3
6073 2 2 1 1 10 11 3
608select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);608select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);
609c b a b b c y c609c b a b b c y c
61010 1 2 1 1 10 11 3
61010 1 2 1 1 3 11 361110 1 2 1 1 3 11 3
61110 1 2 1 1 10 11 36123 1 2 1 1 10 11 3
6123 1 2 1 1 3 11 36133 1 2 1 1 3 11 3
6133 1 2 1 1 10 11 36143 2 2 1 1 10 11 3
6143 2 2 1 1 3 11 36153 2 2 1 1 3 11 3
6153 2 2 1 1 10 11 3
616select * from (t1 natural join t2) join (t3 natural join t4) on a = y;616select * from (t1 natural join t2) join (t3 natural join t4) on a = y;
617b c a c b y617b c a c b y
6181 10 2 3 1 26181 10 2 3 1 2
6191 3 2 3 1 26191 3 2 3 1 2
620select * 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;620select * 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;
621b c c b a b y c y z621b c c b a b y c y z
6221 10 10 1 2 1 11 3 11 4
6231 10 3 1 2 1 11 3 11 4
6221 3 10 1 2 1 11 3 11 46241 3 10 1 2 1 11 3 11 4
6231 10 10 1 2 1 11 3 11 4
6241 3 3 1 2 1 11 3 11 46251 3 3 1 2 1 11 3 11 4
6251 10 3 1 2 1 11 3 11 4
626select * from t1 natural join t2 where t1.b > 0;626select * from t1 natural join t2 where t1.b > 0;
627b c a627b c a
6281 10 26281 10 2
629629
=== modified file 'tests/r/join_nested.result'
--- tests/r/join_nested.result 2010-08-09 16:31:29 +0000
+++ tests/r/join_nested.result 2010-08-22 01:04:46 +0000
@@ -39,8 +39,8 @@
39FROM t3,t4;39FROM t3,t4;
40a b a b40a b a b
411 2 3 2411 2 3 2
421 2 4 2
422 2 3 2432 2 3 2
431 2 4 2
442 2 4 2442 2 4 2
45SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b45SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
46FROM t246FROM t2
@@ -108,17 +108,17 @@
108SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b108SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
109FROM t3,t4,t5;109FROM t3,t4,t5;
110a b a b a b110a b a b a b
1111 2 3 2 2 2
1111 2 3 2 3 11121 2 3 2 3 1
1122 2 3 2 3 11131 2 3 2 3 3
1141 2 4 2 2 2
1131 2 4 2 3 11151 2 4 2 3 1
1142 2 4 2 3 11161 2 4 2 3 3
1151 2 3 2 2 2
1162 2 3 2 2 21172 2 3 2 2 2
1171 2 4 2 2 21182 2 3 2 3 1
1182 2 4 2 2 2
1191 2 3 2 3 3
1202 2 3 2 3 31192 2 3 2 3 3
1211 2 4 2 3 31202 2 4 2 2 2
1212 2 4 2 3 1
1222 2 4 2 3 31222 2 4 2 3 3
123SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b123SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
124FROM t2124FROM t2
@@ -212,10 +212,10 @@
212a b a b212a b a b
2133 2 1 12133 2 1 1
2143 2 2 22143 2 2 2
2156 1 1 1
2166 1 2 2
2156 2 1 12176 2 1 1
2166 2 2 22186 2 2 2
2176 1 1 1
2186 1 2 2
219SELECT t8.a,t8.b219SELECT t8.a,t8.b
220FROM t8;220FROM t8;
221a b221a b
@@ -228,11 +228,11 @@
228t8228t8
229ON t7.b=t8.b AND t6.b < 10;229ON t7.b=t8.b AND t6.b < 10;
230id select_type table type possible_keys key key_len ref rows filtered Extra230id select_type table type possible_keys key key_len ref rows filtered Extra
2311 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00
2321 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer2311 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using join buffer
2321 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00
2331 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 2331 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00
234Warnings:
235Note 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 1234Note 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
235Warnings:
236SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b236SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
237FROM (t6, t7)237FROM (t6, t7)
238LEFT JOIN 238LEFT JOIN
@@ -361,17 +361,17 @@
361WHERE t2.a > 3 AND361WHERE t2.a > 3 AND
362(t6.a < 6 OR t6.c IS NULL);362(t6.a < 6 OR t6.c IS NULL);
363a b a b a b a b a b a b a b363a b a b a b a b a b a b a b
3644 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
3654 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
3665 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
3674 2 1 2 3 2 2 2 3 2 2 2 0 23644 2 1 2 3 2 2 2 3 2 2 2 0 2
3684 2 1 2 3 2 2 2 3 2 2 2 1 23654 2 1 2 3 2 2 2 3 2 2 2 1 2
3664 2 1 2 3 2 3 1 3 2 1 1 NULL NULL
3674 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL
3694 2 1 2 4 2 2 2 3 2 2 2 0 23684 2 1 2 4 2 2 2 3 2 2 2 0 2
3704 2 1 2 4 2 2 2 3 2 2 2 1 23694 2 1 2 4 2 2 2 3 2 2 2 1 2
3704 2 1 2 4 2 3 1 3 2 1 1 NULL NULL
3714 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
3715 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 23725 3 NULL NULL NULL NULL 2 2 3 2 2 2 0 2
3725 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 23735 3 NULL NULL NULL NULL 2 2 3 2 2 2 1 2
3734 2 1 2 3 2 3 3 NULL NULL NULL NULL NULL NULL3745 3 NULL NULL NULL NULL 3 1 3 2 1 1 NULL NULL
3744 2 1 2 4 2 3 3 NULL NULL NULL NULL NULL NULL
3755 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL3755 3 NULL NULL NULL NULL 3 3 NULL NULL NULL NULL NULL NULL
376SELECT t1.a,t1.b376SELECT t1.a,t1.b
377FROM t1;377FROM t1;
@@ -644,12 +644,12 @@
6441 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where6441 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
6451 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where6451 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
6461 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where6461 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where
6471 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
6471 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where6481 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
6481 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
6491 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where6491 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
6501 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer6501 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer
651Note 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`)))
651Warnings:652Warnings:
652Note 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`)))
653SELECT t9.a,t9.b653SELECT t9.a,t9.b
654FROM t9;654FROM t9;
655a b655a b
@@ -743,12 +743,12 @@
743WHERE t1.a <= 2;743WHERE t1.a <= 2;
744a b a b a b744a b a b a b
7451 3 3 3 NULL NULL7451 3 3 3 NULL NULL
7462 2 3 3 NULL NULL
7471 3 4 2 1 27461 3 4 2 1 2
7481 3 4 2 2 27471 3 4 2 2 2
7481 3 5 3 NULL NULL
7492 2 3 3 NULL NULL
7492 2 4 2 1 27502 2 4 2 1 2
7502 2 4 2 2 27512 2 4 2 2 2
7511 3 5 3 NULL NULL
7522 2 5 3 NULL NULL7522 2 5 3 NULL NULL
753SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b753SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
754FROM t1, t3 754FROM t1, t3
@@ -758,12 +758,12 @@
758WHERE t1.a <= 2;758WHERE t1.a <= 2;
759a b a b a b759a b a b a b
7601 3 3 3 NULL NULL7601 3 3 3 NULL NULL
7612 2 3 3 NULL NULL
7621 3 4 2 1 27611 3 4 2 1 2
7631 3 4 2 2 27621 3 4 2 2 2
7631 3 5 3 NULL NULL
7642 2 3 3 NULL NULL
7642 2 4 2 1 27652 2 4 2 1 2
7652 2 4 2 2 27662 2 4 2 2 2
7661 3 5 3 NULL NULL
7672 2 5 3 NULL NULL7672 2 5 3 NULL NULL
768SELECT t3.a,t3.b,t4.a,t4.b768SELECT t3.a,t3.b,t4.a,t4.b
769FROM t3,t4;769FROM t3,t4;
@@ -790,12 +790,12 @@
790WHERE t1.a <= 2;790WHERE t1.a <= 2;
791a b a b a b a b791a b a b a b a b
7921 3 3 3 NULL NULL NULL NULL7921 3 3 3 NULL NULL NULL NULL
7932 2 3 3 NULL NULL NULL NULL
7941 3 4 2 1 2 3 27931 3 4 2 1 2 3 2
7951 3 4 2 1 2 4 27941 3 4 2 1 2 4 2
7951 3 5 3 NULL NULL NULL NULL
7962 2 3 3 NULL NULL NULL NULL
7962 2 4 2 1 2 3 27972 2 4 2 1 2 3 2
7972 2 4 2 1 2 4 27982 2 4 2 1 2 4 2
7981 3 5 3 NULL NULL NULL NULL
7992 2 5 3 NULL NULL NULL NULL7992 2 5 3 NULL NULL NULL NULL
800SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b800SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
801FROM t1, (t3, t4) 801FROM t1, (t3, t4)
@@ -805,12 +805,12 @@
805WHERE t1.a <= 2;805WHERE t1.a <= 2;
806a b a b a b a b806a b a b a b a b
8071 3 3 3 NULL NULL NULL NULL8071 3 3 3 NULL NULL NULL NULL
8082 2 3 3 NULL NULL NULL NULL
8091 3 4 2 1 2 3 28081 3 4 2 1 2 3 2
8101 3 4 2 1 2 4 28091 3 4 2 1 2 4 2
8101 3 5 3 NULL NULL NULL NULL
8112 2 3 3 NULL NULL NULL NULL
8112 2 4 2 1 2 3 28122 2 4 2 1 2 3 2
8122 2 4 2 1 2 4 28132 2 4 2 1 2 4 2
8131 3 5 3 NULL NULL NULL NULL
8142 2 5 3 NULL NULL NULL NULL8142 2 5 3 NULL NULL NULL NULL
815SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b815SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
816FROM t1, (t3, t4)816FROM t1, (t3, t4)
@@ -849,12 +849,12 @@
849(t1,t2)849(t1,t2)
850ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b;850ON t3.a=1 AND t3.b=t2.b AND t2.b=t4.b;
851id select_type table type possible_keys key key_len ref rows filtered Extra851id select_type table type possible_keys key key_len ref rows filtered Extra
8521 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
8531 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 1 100.00
8521 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 8541 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00
8531 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer8551 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using join buffer
8541 SIMPLE t2 ref idx_b idx_b 5 test.t3.b 1 100.00
8551 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00
856Warnings:
857Note 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 1856Note 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
857Warnings:
858SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b858SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
859FROM (t3,t4)859FROM (t3,t4)
860LEFT JOIN 860LEFT JOIN
@@ -911,12 +911,12 @@
9111 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where9111 SIMPLE t3 ALL NULL NULL NULL NULL 2 100.00 Using where
9121 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where9121 SIMPLE t4 ALL NULL NULL NULL NULL 2 100.00 Using where
9131 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where9131 SIMPLE t5 ALL NULL NULL NULL NULL 3 100.00 Using where
9141 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
9141 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where9151 SIMPLE t7 ALL NULL NULL NULL NULL 2 100.00 Using where
9151 SIMPLE t6 ALL NULL NULL NULL NULL 3 100.00 Using where
9161 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where9161 SIMPLE t8 ALL NULL NULL NULL NULL 2 100.00 Using where
9171 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer9171 SIMPLE t9 ALL NULL NULL NULL NULL 3 100.00 Using where; Using join buffer
918Note 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`)))
918Warnings:919Warnings:
919Note 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`)))
920CREATE INDEX idx_b ON t4(b);920CREATE INDEX idx_b ON t4(b);
921CREATE INDEX idx_b ON t5(b);921CREATE INDEX idx_b ON t5(b);
922EXPLAIN EXTENDED922EXPLAIN EXTENDED
923923
=== modified file 'tests/r/join_outer.result'
--- tests/r/join_outer.result 2010-02-15 18:29:31 +0000
+++ tests/r/join_outer.result 2010-08-22 01:04:46 +0000
@@ -462,19 +462,19 @@
4627 green4627 green
463select * from t2 natural join t1;463select * from t2 natural join t1;
464color count name464color count name
465black 5 grape
465green 10 lime466green 10 lime
466green 7 lime467green 7 lime
467black 5 grape
468select t2.count, t1.name from t2 natural join t1;468select t2.count, t1.name from t2 natural join t1;
469count name469count name
47010 lime47010 lime
4715 grape
4717 lime4727 lime
4725 grape
473select t2.count, t1.name from t2 inner join t1 using (color);473select t2.count, t1.name from t2 inner join t1 using (color);
474count name474count name
47510 lime47510 lime
4765 grape
4767 lime4777 lime
4775 grape
478drop table t1;478drop table t1;
479drop table t2;479drop table t2;
480CREATE TABLE t1 (480CREATE TABLE t1 (
481481
=== modified file 'tests/r/key_diff.result'
--- tests/r/key_diff.result 2008-12-06 22:41:03 +0000
+++ tests/r/key_diff.result 2010-08-22 01:04:46 +0000
@@ -9,30 +9,30 @@
9select * from t1,t1 as t2;9select * from t1,t1 as t2;
10a b a b10a b a b
11A B A B11A B A B
12b A A B12A B C c
13A B D E
14A B a a
15A B b A
13C c A B16C c A B
17C c C c
18C c D E
19C c a a
20C c b A
14D E A B21D E A B
22D E C c
23D E D E
24D E a a
25D E b A
15a a A B26a a A B
16A B b A27a a C c
17b A b A28a a D E
18C c b A29a a a a
19D E b A
20a a b A30a a b A
21A B C c31b A A B
22b A C c32b A C c
23C c C c
24D E C c
25a a C c
26A B D E
27b A D E33b A D E
28C c D E
29D E D E
30a a D E
31A B a a
32b A a a34b A a a
33C c a a35b A b A
34D E a a
35a a a a
36explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;36explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
37id select_type table type possible_keys key key_len ref rows Extra37id select_type table type possible_keys key key_len ref rows Extra
381 SIMPLE t1 ALL a NULL NULL NULL 5 381 SIMPLE t1 ALL a NULL NULL NULL 5
3939
=== modified file 'tests/r/range.result'
--- tests/r/range.result 2010-08-09 16:31:29 +0000
+++ tests/r/range.result 2010-08-22 01:04:46 +0000
@@ -694,8 +694,8 @@
694v.oxrootid ='d8c4177d09f8b11f5.52725521' AND694v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
695s.oxleft > v.oxleft AND s.oxleft < v.oxright;695s.oxleft > v.oxleft AND s.oxleft < v.oxright;
696id select_type table type possible_keys key key_len ref rows Extra696id select_type table type possible_keys key key_len ref rows Extra
6971 SIMPLE # ALL OXLEFT NULL NULL # # Range checked for each record (index map: 0x4)
6971 SIMPLE # ALL OXLEFT,OXRIGHT,OXROOTID NULL NULL # # Using where6981 SIMPLE # ALL OXLEFT,OXRIGHT,OXROOTID NULL NULL # # Using where
6981 SIMPLE # ALL OXLEFT NULL NULL # # Range checked for each record (index map: 0x4)
699SELECT s.oxid FROM t1 v, t1 s 699SELECT s.oxid FROM t1 v, t1 s
700WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND700WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND
701v.oxrootid ='d8c4177d09f8b11f5.52725521' AND701v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
702702
=== modified file 'tests/r/select.result'
--- tests/r/select.result 2010-08-19 20:36:05 +0000
+++ tests/r/select.result 2010-08-22 01:04:46 +0000
@@ -1272,29 +1272,29 @@
1272select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;1272select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
1273fld1 fld11273fld1 fld1
1274250501 2505011274250501 250501
1275250501 250502
1276250501 250503
1277250501 250504
1278250501 250505
1275250502 2505011279250502 250501
1280250502 250502
1281250502 250503
1282250502 250504
1283250502 250505
1276250503 2505011284250503 250501
1285250503 250502
1286250503 250503
1287250503 250504
1288250503 250505
1277250504 2505011289250504 250501
1290250504 250502
1291250504 250503
1292250504 250504
1293250504 250505
1278250505 2505011294250505 250501
1279250501 250502
1280250502 250502
1281250503 250502
1282250504 250502
1283250505 2505021295250505 250502
1284250501 250503
1285250502 250503
1286250503 250503
1287250504 250503
1288250505 2505031296250505 250503
1289250501 250504
1290250502 250504
1291250503 250504
1292250504 250504
1293250505 2505041297250505 250504
1294250501 250505
1295250502 250505
1296250503 250505
1297250504 250505
1298250505 2505051298250505 250505
1299insert into t2 (fld1, companynr) values (999999,99);1299insert into t2 (fld1, companynr) values (999999,99);
1300select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;1300select t2.companynr,companyname from t2 left join t4 using (companynr) where t4.companynr is null;
@@ -2014,13 +2014,13 @@
2014select * from (t1 as t2 left join t1 as t3 using (a)), t1;2014select * from (t1 as t2 left join t1 as t3 using (a)), t1;
2015a a2015a a
20161 120161 1
20171 2
20181 3
20172 120192 1
20202 2
20212 3
20183 120223 1
20191 2
20202 2
20213 220233 2
20221 3
20232 3
20243 320243 3
2025select * from t1, (t1 as t2 left join t1 as t3 using (a));2025select * from t1, (t1 as t2 left join t1 as t3 using (a));
2026a a2026a a
20272027
=== modified file 'tests/r/subselect.result'
--- tests/r/subselect.result 2010-08-19 20:36:05 +0000
+++ tests/r/subselect.result 2010-08-22 01:04:46 +0000
@@ -4526,8 +4526,8 @@
4526SELECT * FROM t1 JOIN (t1 t1a) ON 1;4526SELECT * FROM t1 JOIN (t1 t1a) ON 1;
4527a a4527a a
45281 145281 1
45291 2
45292 145302 1
45301 2
45312 245312 2
4532SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;4532SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
4533a a4533a a
45344534
=== modified file 'tests/r/type_blob.result'
--- tests/r/type_blob.result 2010-07-27 00:57:00 +0000
+++ tests/r/type_blob.result 2010-08-22 01:04:46 +0000
@@ -46,13 +46,13 @@
46select * from t1,t1 as t2;46select * from t1,t1 as t2;
47nr b str nr b str47nr b str nr b str
481 a A 1 a A481 a A 1 a A
491 a A 2 bbb BBB
501 a A 3 ccc CCC
492 bbb BBB 1 a A512 bbb BBB 1 a A
522 bbb BBB 2 bbb BBB
532 bbb BBB 3 ccc CCC
503 ccc CCC 1 a A543 ccc CCC 1 a A
511 a A 2 bbb BBB
522 bbb BBB 2 bbb BBB
533 ccc CCC 2 bbb BBB553 ccc CCC 2 bbb BBB
541 a A 3 ccc CCC
552 bbb BBB 3 ccc CCC
563 ccc CCC 3 ccc CCC563 ccc CCC 3 ccc CCC
57drop table t1;57drop table t1;
58create table t1 (a text);58create table t1 (a text);
5959
=== modified file 'tests/r/type_datetime.result'
--- tests/r/type_datetime.result 2010-07-28 23:57:35 +0000
+++ tests/r/type_datetime.result 2010-08-22 01:04:46 +0000
@@ -268,10 +268,10 @@
268select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1'));268select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1'));
269f1 f2 f3269f1 f2 f3
2702001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:002702001-01-01 2001-01-01 00:00:00 2001-01-01 00:00:00
2712001-01-01 2001-01-01 00:00:00 2001-02-03 12:34:56
2722001-01-01 2001-01-01 00:00:00 2002-04-06 11:22:33
2712001-01-01 2001-02-03 12:34:56 2001-01-01 00:00:002732001-01-01 2001-02-03 12:34:56 2001-01-01 00:00:00
2722001-01-01 2002-04-06 11:22:33 2001-01-01 00:00:002742001-01-01 2002-04-06 11:22:33 2001-01-01 00:00:00
2732001-01-01 2001-01-01 00:00:00 2001-02-03 12:34:56
2742001-01-01 2001-01-01 00:00:00 2002-04-06 11:22:33
275select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02'));275select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02'));
276f1276f1
2772001-01-012772001-01-01
278278
=== modified file 'tests/t/derived.test'
--- tests/t/derived.test 2009-08-04 02:33:47 +0000
+++ tests/t/derived.test 2010-08-22 01:04:46 +0000
@@ -27,6 +27,7 @@
27SELECT 1 FROM (SELECT 1) a WHERE a=2;27SELECT 1 FROM (SELECT 1) a WHERE a=2;
28--error 105428--error 1054
29SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;29SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;
30--sort_result
30select * from t1 as x1, (select * from t1) as x2;31select * from t1 as x1, (select * from t1) as x2;
31explain select * from t1 as x1, (select * from t1) as x2;32explain select * from t1 as x1, (select * from t1) as x2;
32drop table if exists t2,t3;33drop table if exists t2,t3;
@@ -116,12 +117,14 @@
116create table t1 (E1 INTEGER NOT NULL, E2 INTEGER NOT NULL, E3 INTEGER NOT NULL, PRIMARY KEY(E1)117create table t1 (E1 INTEGER NOT NULL, E2 INTEGER NOT NULL, E3 INTEGER NOT NULL, PRIMARY KEY(E1)
117);118);
118insert into t1 VALUES(1,1,1), (2,2,1);119insert into t1 VALUES(1,1,1), (2,2,1);
120--sort_result
119select 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;121select 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;
120explain 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;122explain 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;
121drop table t1;123drop table t1;
122124
123create table t1 (a int);125create table t1 (a int);
124insert into t1 values (1),(2);126insert into t1 values (1),(2);
127--sort_result
125select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;128select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
126explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;129explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
127drop table t1;130drop table t1;
128131
=== modified file 'tests/t/distinct.test'
--- tests/t/distinct.test 2010-02-15 18:29:31 +0000
+++ tests/t/distinct.test 2010-08-22 01:04:46 +0000
@@ -235,6 +235,7 @@
235 (1, 'Z001'),235 (1, 'Z001'),
236 (2, 'R002');236 (2, 'R002');
237237
238--sorted_result
238SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;239SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
239SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;240SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
240SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC;241SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC;
@@ -345,6 +346,7 @@
345EXPLAIN SELECT DISTINCT a FROM t1;346EXPLAIN SELECT DISTINCT a FROM t1;
346EXPLAIN SELECT DISTINCT a,b FROM t1;347EXPLAIN SELECT DISTINCT a,b FROM t1;
347EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2;348EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2;
349--sorted_result
348EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2350EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
349 WHERE t1_1.a = t1_2.a;351 WHERE t1_1.a = t1_2.a;
350EXPLAIN SELECT a FROM t1 GROUP BY a;352EXPLAIN SELECT a FROM t1 GROUP BY a;
351353
=== modified file 'tests/t/func_group.test'
--- tests/t/func_group.test 2010-08-18 21:57:15 +0000
+++ tests/t/func_group.test 2010-08-22 01:04:46 +0000
@@ -128,6 +128,7 @@
128128
129insert into t2 values('AAA', 10, 0.5);129insert into t2 values('AAA', 10, 0.5);
130insert into t2 values('BBB', 20, 1.0);130insert into t2 values('BBB', 20, 1.0);
131--sorted_result
131select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;132select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;
132133
133select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9;134select max(t1.a1), max(t2.a1) from t1, t2 where t2.a2=9;
@@ -629,6 +630,7 @@
629CREATE TABLE t2 (a INT PRIMARY KEY, b INT);630CREATE TABLE t2 (a INT PRIMARY KEY, b INT);
630INSERT INTO t2 VALUES (1,1), (3,3);631INSERT INTO t2 VALUES (1,1), (3,3);
631632
633--sorted_result
632SELECT 634SELECT
633 (SELECT SUM(c.a) FROM t1 ttt, t2 ccc 635 (SELECT SUM(c.a) FROM t1 ttt, t2 ccc
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
635637
=== modified file 'tests/t/func_in.test'
--- tests/t/func_in.test 2009-07-03 13:13:20 +0000
+++ tests/t/func_in.test 2010-08-22 01:04:46 +0000
@@ -262,6 +262,7 @@
262INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002),262INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002),
263 (1003,1003),(1004,1004);263 (1003,1003),(1004,1004);
264264
265--sorted_result
265EXPLAIN SELECT STRAIGHT_JOIN * FROM t3 266EXPLAIN SELECT STRAIGHT_JOIN * FROM t3
266 JOIN t1 ON t3.a=t1.a 267 JOIN t1 ON t3.a=t1.a
267 JOIN t2 ON t3.a=t2.a268 JOIN t2 ON t3.a=t2.a
@@ -272,6 +273,7 @@
272 JOIN t2 ON t3.a=t2.a273 JOIN t2 ON t3.a=t2.a
273 JOIN t4 WHERE t4.a IN (t1.b, t2.b);274 JOIN t4 WHERE t4.a IN (t1.b, t2.b);
274275
276--sorted_result
275EXPLAIN SELECT STRAIGHT_JOIN 277EXPLAIN SELECT STRAIGHT_JOIN
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))
277 FROM t3, t1, t2279 FROM t3, t1, t2
278280
=== modified file 'tests/t/func_time.test'
--- tests/t/func_time.test 2009-06-16 00:53:22 +0000
+++ tests/t/func_time.test 2010-08-22 01:04:46 +0000
@@ -498,9 +498,11 @@
498INSERT INTO t2 VALUES498INSERT INTO t2 VALUES
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');
500500
501--sorted_result
501SELECT * FROM t1, t2 502SELECT * FROM t1, t2
502 WHERE t1.day BETWEEN 503 WHERE t1.day BETWEEN
503 '2005.09.01' - INTERVAL 6 MONTH AND t2.day;504 '2005.09.01' - INTERVAL 6 MONTH AND t2.day;
505--sorted_result
504SELECT * FROM t1, t2 506SELECT * FROM t1, t2
505 WHERE CAST(t1.day AS DATE) BETWEEN 507 WHERE CAST(t1.day AS DATE) BETWEEN
506 '2005.09.01' - INTERVAL 6 MONTH AND t2.day;508 '2005.09.01' - INTERVAL 6 MONTH AND t2.day;
507509
=== modified file 'tests/t/greedy_optimizer.test'
--- tests/t/greedy_optimizer.test 2010-02-15 18:29:31 +0000
+++ tests/t/greedy_optimizer.test 2010-08-22 01:04:46 +0000
@@ -173,18 +173,23 @@
173# 6-table join, chain173# 6-table join, chain
174explain 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;174explain 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;
175--replace_column 2 #175--replace_column 2 #
176--sorted_result
176show status like 'Last_query_cost';177show status like 'Last_query_cost';
177explain 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;178explain 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--replace_column 2 #179--replace_column 2 #
180--sorted_result
179show status like 'Last_query_cost';181show status like 'Last_query_cost';
180# 6-table join, star182# 6-table join, star
183--sorted_result
181explain 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;184explain 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;
182--replace_column 2 #185--replace_column 2 #
183show status like 'Last_query_cost';186show status like 'Last_query_cost';
187--sorted_result
184explain 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;188explain 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;
185--replace_column 2 #189--replace_column 2 #
186show status like 'Last_query_cost';190show status like 'Last_query_cost';
187# 6-table join, clique191# 6-table join, clique
192--sorted_result
188explain 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;193explain 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;
189--replace_column 2 #194--replace_column 2 #
190show status like 'Last_query_cost';195show status like 'Last_query_cost';
@@ -202,6 +207,7 @@
202select @@optimizer_search_depth;207select @@optimizer_search_depth;
203208
204# 6-table join, chain209# 6-table join, chain
210--sorted_result
205explain 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;211explain 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;
206--replace_column 2 #212--replace_column 2 #
207show status like 'Last_query_cost';213show status like 'Last_query_cost';
@@ -210,15 +216,19 @@
210show status like 'Last_query_cost';216show status like 'Last_query_cost';
211# 6-table join, star217# 6-table join, star
212--replace_column 2 #218--replace_column 2 #
219--sorted_result
213explain 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;220explain 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;
214--replace_column 2 #221--replace_column 2 #
215show status like 'Last_query_cost';222show status like 'Last_query_cost';
223--sorted_result
216explain 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;224explain 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;
217--replace_column 2 #225--replace_column 2 #
218show status like 'Last_query_cost';226show status like 'Last_query_cost';
227--sorted_result
219# 6-table join, clique228# 6-table join, clique
220explain 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;229explain 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;
221--replace_column 2 #230--replace_column 2 #
231--sorted_result
222show status like 'Last_query_cost';232show status like 'Last_query_cost';
223explain 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;233explain 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;
224--replace_column 2 #234--replace_column 2 #
@@ -228,22 +238,30 @@
228select @@optimizer_search_depth;238select @@optimizer_search_depth;
229239
230# 6-table join, chain240# 6-table join, chain
241--sorted_result
231explain 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;242explain 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;
232--replace_column 2 #243--replace_column 2 #
244--sorted_result
233show status like 'Last_query_cost';245show status like 'Last_query_cost';
234explain 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;246explain 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;
235--replace_column 2 #247--replace_column 2 #
248--sorted_result
236show status like 'Last_query_cost';249show status like 'Last_query_cost';
237# 6-table join, star250# 6-table join, star
251--sorted_result
238explain 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;252explain 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;
239--replace_column 2 #253--replace_column 2 #
254--sorted_result
240show status like 'Last_query_cost';255show status like 'Last_query_cost';
241explain 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;256explain 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;
242--replace_column 2 #257--replace_column 2 #
258--sorted_result
243show status like 'Last_query_cost';259show status like 'Last_query_cost';
244# 6-table join, clique260# 6-table join, clique
261--sorted_result
245explain 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;262explain 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;
246--replace_column 2 #263--replace_column 2 #
264--sorted_result
247show status like 'Last_query_cost';265show status like 'Last_query_cost';
248explain 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;266explain 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;
249--replace_column 2 #267--replace_column 2 #
@@ -260,16 +278,20 @@
260--replace_column 2 #278--replace_column 2 #
261show status like 'Last_query_cost';279show status like 'Last_query_cost';
262# 6-table join, star280# 6-table join, star
281--sorted_result
263explain 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;282explain 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;
264--replace_column 2 #283--replace_column 2 #
265show status like 'Last_query_cost';284show status like 'Last_query_cost';
285--sorted_result
266explain 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;286explain 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;
267--replace_column 2 #287--replace_column 2 #
268show status like 'Last_query_cost';288show status like 'Last_query_cost';
269# 6-table join, clique289# 6-table join, clique
290--sorted_result
270explain 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;291explain 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;
271--replace_column 2 #292--replace_column 2 #
272show status like 'Last_query_cost';293show status like 'Last_query_cost';
294--sorted_result
273explain 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;295explain 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;
274--replace_column 2 #296--replace_column 2 #
275show status like 'Last_query_cost';297show status like 'Last_query_cost';
@@ -289,11 +311,14 @@
289--replace_column 2 #311--replace_column 2 #
290show status like 'Last_query_cost';312show status like 'Last_query_cost';
291# 6-table join, star313# 6-table join, star
314--sorted_result
292explain 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;315explain 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;
293--replace_column 2 #316--replace_column 2 #
317--sorted_result
294show status like 'Last_query_cost';318show status like 'Last_query_cost';
295explain 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;319explain 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;
296--replace_column 2 #320--replace_column 2 #
321--sorted_result
297show status like 'Last_query_cost';322show status like 'Last_query_cost';
298# 6-table join, clique323# 6-table join, clique
299explain 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;324explain 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;
300325
=== modified file 'tests/t/group_by.test'
--- tests/t/group_by.test 2010-08-19 01:24:09 +0000
+++ tests/t/group_by.test 2010-08-22 01:04:46 +0000
@@ -400,7 +400,9 @@
400insert into t2 values (1,3),(3,1),(2,2),(1,1);400insert into t2 values (1,3),(3,1),(2,2),(1,1);
401select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;401select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
402select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;402select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
403--sorted_result
403explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;404explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b;
405--sorted_result
404explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;406explain select t1.a,t2.b from t1,t2 where t1.a=t2.a group by t1.a,t2.b ORDER BY NULL;
405drop table t1,t2;407drop table t1,t2;
406408
407409
=== modified file 'tests/t/group_min_max.test'
--- tests/t/group_min_max.test 2009-11-26 02:37:40 +0000
+++ tests/t/group_min_max.test 2010-08-22 01:04:46 +0000
@@ -523,6 +523,7 @@
523# BUG #8532 - SELECT DISTINCT a, a causes server to crash523# BUG #8532 - SELECT DISTINCT a, a causes server to crash
524select distinct a1,a1 from t1;524select distinct a1,a1 from t1;
525select distinct a2,a1,a2,a1 from t1;525select distinct a2,a1,a2,a1 from t1;
526--sorted_result
526select distinct t1.a1,t2.a1 from t1,t2;527select distinct t1.a1,t2.a1 from t1,t2;
527528
528529
529530
=== modified file 'tests/t/join.test'
--- tests/t/join.test 2010-02-15 18:29:31 +0000
+++ tests/t/join.test 2010-08-22 01:04:46 +0000
@@ -248,6 +248,7 @@
248 PRIMARY KEY (id)248 PRIMARY KEY (id)
249) ENGINE=MyISAM;249) ENGINE=MyISAM;
250INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5');250INSERT INTO t2 VALUES (1,'s1'),(2,'s2'),(3,'s3'),(4,'s4'),(5,'s5');
251--sorted_result
251select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2;252select t1.*, t2.* from t1, t2 where t2.id=t1.t2_id limit 2;
252drop table t1,t2;253drop table t1,t2;
253254
@@ -400,9 +401,11 @@
400from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;401from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
401402
402# Views with bigger natural join403# Views with bigger natural join
404--sorted_result
403select * from t1 natural join (t2 natural join t3);405select * from t1 natural join (t2 natural join t3);
404406
405# Nested natural/using joins.407# Nested natural/using joins.
408--sorted_result
406select * from (t1 natural join t2) natural join (t3 natural join t4);409select * from (t1 natural join t2) natural join (t3 natural join t4);
407select * from (t1 natural join t2) natural left join (t3 natural join t4);410select * from (t1 natural join t2) natural left join (t3 natural join t4);
408select * from (t3 natural join t4) natural right join (t1 natural join t2);411select * from (t3 natural join t4) natural right join (t1 natural join t2);
@@ -443,11 +446,14 @@
443select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;446select * from t1 join (t2 join t4 on b + 1 = y) on t1.c = t4.c;
444select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c;447select * from (t2 join t4 on b + 1 = y) join t1 on t1.c = t4.c;
445select * from t1 natural join (t2 join t4 on b + 1 = y);448select * from t1 natural join (t2 join t4 on b + 1 = y);
449--sorted_result
446select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);450select * from (t1 cross join t2) join (t3 cross join t4) on (a < y and t2.b < t3.c);
447451
448# MySQL extension - 'join ... on' over nested comma operator452# MySQL extension - 'join ... on' over nested comma operator
453--sorted_result
449select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);454select * from (t1, t2) join (t3, t4) on (a < y and t2.b < t3.c);
450select * from (t1 natural join t2) join (t3 natural join t4) on a = y;455select * from (t1 natural join t2) join (t3 natural join t4) on a = y;
456--sorted_result
451select * 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;457select * 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;
452458
453# MySQL extension - refererence qualified coalesced columns459# MySQL extension - refererence qualified coalesced columns
@@ -456,6 +462,7 @@
456select * from (t4 natural join t5) natural join t1 where t4.y > 7;462select * from (t4 natural join t5) natural join t1 where t4.y > 7;
457select * from t1 natural left join (t4 natural join t5) where t4.y > 7;463select * from t1 natural left join (t4 natural join t5) where t4.y > 7;
458select * from (t4 natural join t5) natural right join t1 where t4.y > 7;464select * from (t4 natural join t5) natural right join t1 where t4.y > 7;
465--sorted_result
459select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b;466select * from (t1 natural join t2) join (t3 natural join t4) on t1.b = t3.b;
460467
461# MySQL extension - select qualified columns of NJ columns468# MySQL extension - select qualified columns of NJ columns
462469
=== modified file 'tests/t/join_nested.test'
--- tests/t/join_nested.test 2008-12-06 22:41:03 +0000
+++ tests/t/join_nested.test 2010-08-22 01:04:46 +0000
@@ -35,6 +35,7 @@
35SELECT t4.a,t4.b35SELECT t4.a,t4.b
36 FROM t4;36 FROM t4;
3737
38--sorted_result
38SELECT t3.a,t3.b,t4.a,t4.b39SELECT t3.a,t3.b,t4.a,t4.b
39 FROM t3,t4;40 FROM t3,t4;
4041
@@ -75,6 +76,7 @@
75SELECT t5.a,t5.b76SELECT t5.a,t5.b
76 FROM t5;77 FROM t5;
7778
79--sorted_result
78SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b80SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
79 FROM t3,t4,t5;81 FROM t3,t4,t5;
8082
@@ -122,12 +124,14 @@
122SELECT t7.a,t7.b124SELECT t7.a,t7.b
123 FROM t7;125 FROM t7;
124126
127--sorted_result
125SELECT t6.a,t6.b,t7.a,t7.b128SELECT t6.a,t6.b,t7.a,t7.b
126 FROM t6,t7;129 FROM t6,t7;
127130
128SELECT t8.a,t8.b131SELECT t8.a,t8.b
129 FROM t8;132 FROM t8;
130133
134--sorted_result
131EXPLAIN EXTENDED135EXPLAIN EXTENDED
132SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b136SELECT t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
133 FROM (t6, t7)137 FROM (t6, t7)
@@ -155,6 +159,7 @@
155 )159 )
156 ON t6.b >= 2 AND t5.b=t7.b;160 ON t6.b >= 2 AND t5.b=t7.b;
157161
162--select_sorted
158SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b163SELECT t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
159 FROM t5 164 FROM t5
160 LEFT JOIN 165 LEFT JOIN
@@ -189,6 +194,7 @@
189 )194 )
190 ON t6.b >= 2 AND t5.b=t7.b; 195 ON t6.b >= 2 AND t5.b=t7.b;
191196
197--sorted_result
192SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,198SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
193 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b199 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b
194 FROM t2200 FROM t2
@@ -313,6 +319,7 @@
313 t0.b=t1.b AND 319 t0.b=t1.b AND
314 (t2.a >= 4 OR t2.c IS NULL); 320 (t2.a >= 4 OR t2.c IS NULL);
315321
322--sorted_result
316EXPLAIN EXTENDED323EXPLAIN EXTENDED
317SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,324SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
318 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b325 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
@@ -402,6 +409,7 @@
402 t3409 t3
403 ON t2.b=t3.b;410 ON t2.b=t3.b;
404411
412--sorted_result
405SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b413SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
406 FROM t1, t2 414 FROM t1, t2
407 LEFT JOIN 415 LEFT JOIN
@@ -409,6 +417,7 @@
409 ON t2.b=t3.b417 ON t2.b=t3.b
410 WHERE t1.a <= 2;418 WHERE t1.a <= 2;
411419
420--sorted_result
412SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b421SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b
413 FROM t1, t3 422 FROM t1, t3
414 RIGHT JOIN 423 RIGHT JOIN
@@ -425,6 +434,7 @@
425 (t3, t4)434 (t3, t4)
426 ON t3.a=1 AND t2.b=t4.b;435 ON t3.a=1 AND t2.b=t4.b;
427436
437--sorted_result
428SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b438SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
429 FROM t1, t2 439 FROM t1, t2
430 LEFT JOIN 440 LEFT JOIN
@@ -432,6 +442,7 @@
432 ON t3.a=1 AND t2.b=t4.b442 ON t3.a=1 AND t2.b=t4.b
433 WHERE t1.a <= 2;443 WHERE t1.a <= 2;
434444
445--sorted_result
435SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b446SELECT t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
436 FROM t1, (t3, t4) 447 FROM t1, (t3, t4)
437 RIGHT JOIN 448 RIGHT JOIN
@@ -456,6 +467,7 @@
456467
457CREATE INDEX idx_b ON t2(b);468CREATE INDEX idx_b ON t2(b);
458469
470--sorted_result
459EXPLAIN EXTENDED471EXPLAIN EXTENDED
460SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b472SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
461 FROM (t3,t4)473 FROM (t3,t4)
@@ -469,6 +481,7 @@
469 (t1,t2)481 (t1,t2)
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;
471483
484--sorted_result
472EXPLAIN EXTENDED485EXPLAIN EXTENDED
473SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,486SELECT t0.a,t0.b,t1.a,t1.b,t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,
474 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b487 t5.a,t5.b,t6.a,t6.b,t7.a,t7.b,t8.a,t8.b,t9.a,t9.b
475488
=== modified file 'tests/t/join_outer.test'
--- tests/t/join_outer.test 2010-02-15 18:29:31 +0000
+++ tests/t/join_outer.test 2010-08-22 01:04:46 +0000
@@ -344,8 +344,11 @@
344insert into t2 values (7, 'green');344insert into t2 values (7, 'green');
345select * from t1;345select * from t1;
346select * from t2;346select * from t2;
347--sorted_result
347select * from t2 natural join t1;348select * from t2 natural join t1;
349--sorted_result
348select t2.count, t1.name from t2 natural join t1;350select t2.count, t1.name from t2 natural join t1;
351--sorted_result
349select t2.count, t1.name from t2 inner join t1 using (color);352select t2.count, t1.name from t2 inner join t1 using (color);
350drop table t1;353drop table t1;
351drop table t2;354drop table t2;
352355
=== modified file 'tests/t/key_diff.test'
--- tests/t/key_diff.test 2008-12-06 22:41:03 +0000
+++ tests/t/key_diff.test 2010-08-22 01:04:46 +0000
@@ -14,6 +14,7 @@
1414
15INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');15INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
1616
17--sorted_result
17select * from t1,t1 as t2;18select * from t1,t1 as t2;
18explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;19explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
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;
2021
=== modified file 'tests/t/range.test'
--- tests/t/range.test 2010-05-20 06:32:31 +0000
+++ tests/t/range.test 2010-08-22 01:04:46 +0000
@@ -556,6 +556,7 @@
556 'd8c4177d09f8b11f5.52725521');556 'd8c4177d09f8b11f5.52725521');
557557
558--replace_column 3 # 8 # 9 #558--replace_column 3 # 8 # 9 #
559--sorted_result
559EXPLAIN560EXPLAIN
560SELECT s.oxid FROM t1 v, t1 s 561SELECT s.oxid FROM t1 v, t1 s
561 WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND562 WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND
562563
=== modified file 'tests/t/select.test'
--- tests/t/select.test 2010-04-03 07:02:51 +0000
+++ tests/t/select.test 2010-08-22 01:04:46 +0000
@@ -1535,6 +1535,7 @@
1535#1535#
15361536
1537select * from t1,t1 t12;1537select * from t1,t1 t12;
1538--sorted_result
1538select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;1539select t2.fld1,t22.fld1 from t2,t2 t22 where t2.fld1 >= 250501 and t2.fld1 <= 250505 and t22.fld1 >= 250501 and t22.fld1 <= 250505;
15391540
1540#1541#
@@ -1828,6 +1829,7 @@
1828insert into t1 values ();1829insert into t1 values ();
1829insert into t1 values ();1830insert into t1 values ();
1830# ,1831# ,
1832--sorted_result
1831select * from (t1 as t2 left join t1 as t3 using (a)), t1;1833select * from (t1 as t2 left join t1 as t3 using (a)), t1;
1832select * from t1, (t1 as t2 left join t1 as t3 using (a));1834select * from t1, (t1 as t2 left join t1 as t3 using (a));
1833# stright_join1835# stright_join
18341836
=== modified file 'tests/t/subselect.test'
--- tests/t/subselect.test 2010-03-03 20:57:45 +0000
+++ tests/t/subselect.test 2010-08-22 01:04:46 +0000
@@ -3119,6 +3119,7 @@
3119--error ER_PARSE_ERROR3119--error ER_PARSE_ERROR
3120SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;3120SELECT * FROM t1 JOIN ((t1 t1a)) t1a ON 1;
31213121
3122--sorted_result
3122SELECT * FROM t1 JOIN (t1 t1a) ON 1;3123SELECT * FROM t1 JOIN (t1 t1a) ON 1;
3123SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;3124SELECT * FROM t1 JOIN ((t1 t1a)) ON 1;
31243125
31253126
=== modified file 'tests/t/type_blob.test'
--- tests/t/type_blob.test 2009-06-16 00:46:49 +0000
+++ tests/t/type_blob.test 2010-08-22 01:04:46 +0000
@@ -54,6 +54,7 @@
54insert into t1 values (null,"bbb","BBB");54insert into t1 values (null,"bbb","BBB");
55insert into t1 values (null,"ccc","CCC");55insert into t1 values (null,"ccc","CCC");
56select last_insert_id();56select last_insert_id();
57--sorted_result
57select * from t1,t1 as t2;58select * from t1,t1 as t2;
5859
59drop table t1;60drop table t1;
6061
=== modified file 'tests/t/type_datetime.test'
--- tests/t/type_datetime.test 2010-02-03 21:54:38 +0000
+++ tests/t/type_datetime.test 2010-08-22 01:04:46 +0000
@@ -231,6 +231,7 @@
231create table t3(f3 varchar(20));231create table t3(f3 varchar(20));
232insert into t3 select * from t2;232insert into t3 select * from t2;
233select * from t2,t3 where f2 in (f3,'03-04-05');233select * from t2,t3 where f2 in (f3,'03-04-05');
234--sorted_result
234select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1'));235select f1,f2,f3 from t1,t2,t3 where (f1,'1') in ((f2,'1'),(f3,'1'));
235select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02'));236select f1 from t1 where ('1',f1) in (('1','01-01-01'),('1','2001-1-1 0:0:0'),('1','02-02-02'));
236drop table t1,t2,t3;237drop table t1,t2,t3;