~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/regression/r/697697.result

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
CREATE TABLE t1 (t1i int);
2
 
CREATE TABLE t2 (t2i int);
3
 
CREATE TABLE t3 (t3i int);
4
 
CREATE TABLE t4 (t4i int);
5
 
INSERT INTO t1 VALUES (1);
6
 
INSERT INTO t2 VALUES (1),(2);
7
 
INSERT INTO t3 VALUES (1),(2);
8
 
INSERT INTO t4 VALUES (1),(2);
9
 
EXPLAIN 
10
 
SELECT t1i
11
 
FROM t1 JOIN t4 ON t1i=t4i  
12
 
WHERE (t1i)  IN (  
13
 
SELECT t2i
14
 
FROM t2  
15
 
WHERE (t2i)  IN (  
16
 
SELECT t3i
17
 
FROM t3  
18
 
GROUP BY t3i
19
 
)  
20
 
);
21
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
22
 
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    1       Using where
23
 
1       PRIMARY t4      ALL     NULL    NULL    NULL    NULL    2       Using where; Using join buffer
24
 
2       SUBQUERY        t2      ALL     NULL    NULL    NULL    NULL    2       Using where
25
 
3       SUBQUERY        t3      ALL     NULL    NULL    NULL    NULL    2       Using temporary; Using filesort
26
 
DROP TABLE t1,t2,t3,t4;