~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/regression/t/697697.test

  • Committer: Lee Bieber
  • Date: 2010-11-07 19:34:48 UTC
  • mfrom: (1910.1.2 build)
  • Revision ID: kalebral@gmail.com-20101107193448-64kdu912qej354sh
Merge Stewart - including adapting and expanding the "differences from mysql" page from the wiki.
Merge Stewart - fix bug 668143: drizzleslap with --commit runs second iteration data load in a transaction

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
 
 
6
 
INSERT INTO t1 VALUES (1); # Note: t1 must be const table
7
 
INSERT INTO t2 VALUES (1),(2);
8
 
INSERT INTO t3 VALUES (1),(2);
9
 
INSERT INTO t4 VALUES (1),(2);
10
 
 
11
 
EXPLAIN 
12
 
SELECT t1i
13
 
FROM t1 JOIN t4 ON t1i=t4i  
14
 
WHERE (t1i)  IN (  
15
 
   SELECT t2i
16
 
   FROM t2  
17
 
   WHERE (t2i)  IN (  
18
 
     SELECT t3i
19
 
     FROM t3  
20
 
     GROUP BY t3i
21
 
     )  
22
 
 );
23
 
 
24
 
DROP TABLE t1,t2,t3,t4;
25