~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/join_nested.result

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
4       2
38
38
SELECT t3.a,t3.b,t4.a,t4.b
39
39
FROM t3,t4;
40
 
a       b       a       b
41
 
1       2       3       2
42
 
1       2       4       2
43
 
2       2       3       2
44
 
2       2       4       2
 
40
ERROR HY000: Implicit cartesian join attempted.
45
41
SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b
46
42
FROM t2
47
43
LEFT JOIN              
107
103
3       3
108
104
SELECT t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
109
105
FROM t3,t4,t5;
110
 
a       b       a       b       a       b
111
 
1       2       3       2       2       2
112
 
1       2       3       2       3       1
113
 
1       2       3       2       3       3
114
 
1       2       4       2       2       2
115
 
1       2       4       2       3       1
116
 
1       2       4       2       3       3
117
 
2       2       3       2       2       2
118
 
2       2       3       2       3       1
119
 
2       2       3       2       3       3
120
 
2       2       4       2       2       2
121
 
2       2       4       2       3       1
122
 
2       2       4       2       3       3
 
106
ERROR HY000: Implicit cartesian join attempted.
123
107
SELECT t2.a,t2.b,t3.a,t3.b,t4.a,t4.b,t5.a,t5.b
124
108
FROM t2
125
109
LEFT JOIN              
208
192
1       1
209
193
2       2
210
194
SELECT t6.a,t6.b,t7.a,t7.b
211
 
FROM t6,t7;
 
195
FROM t6 CROSS JOIN t7;
212
196
a       b       a       b
213
197
3       2       1       1
214
198
3       2       2       2
766
750
2       2       4       2       2       2
767
751
2       2       5       3       NULL    NULL
768
752
SELECT t3.a,t3.b,t4.a,t4.b
769
 
FROM t3,t4;
 
753
FROM t3 CROSS JOIN t4;
770
754
a       b       a       b
771
755
1       2       3       2
772
756
2       2       3       2
1054
1038
(t8.b=t9.b OR t8.c IS NULL) AND
1055
1039
(t9.a=1);
1056
1040
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
1057
 
1       SIMPLE  t0      ref     idx_a   idx_a   5       const   1       100.00  Using where
1058
 
1       SIMPLE  t1      ref     idx_b   idx_b   5       test.t0.b       1       100.00  Using where
 
1041
1       SIMPLE  t0      ref     idx_a   idx_a   5       const   2       100.00  Using where
 
1042
1       SIMPLE  t1      ALL     idx_b   NULL    NULL    NULL    3       100.00  Using where; Using join buffer
1059
1043
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where
1060
1044
1       SIMPLE  t4      ref     idx_b   idx_b   5       test.t2.b       1       100.00  
1061
1045
1       SIMPLE  t3      ALL     NULL    NULL    NULL    NULL    2       100.00  Using where
1323
1307
create table t1 (a int);
1324
1308
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
1325
1309
create table t2 (a int, filler char(100), key(a));
1326
 
insert into t2 select A.a + 10*B.a, '' from t1 A, t1 B;
 
1310
insert into t2 select A.a + 10*B.a, '' from t1 A CROSS JOIN t1 B;
1327
1311
create table t3 like t2;
1328
1312
insert into t3 select * from t2;
1329
1313
explain select * from t1 left join