~maria-captains/maria/maria-5.3-mwl247

« back to all changes in this revision

Viewing changes to mysql-test/r/subselect_mat.result

  • Committer: Igor Babaev
  • Date: 2012-03-02 00:02:25 UTC
  • mfrom: (3393.1.58 maria-5.3-bug943543)
  • Revision ID: igor@askmonty.org-20120302000225-o5wm631f7k4zai30
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1892
1892
SELECT * FROM t1
1893
1893
WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
1894
1894
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
1895
 
1       PRIMARY <subquery2>     const   distinct_key    distinct_key    4       const   1       100.00  Using where
 
1895
1       PRIMARY <subquery2>     const   distinct_key    distinct_key    4       const   1       100.00  
1896
1896
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where; Using join buffer (flat, BNL join)
1897
1897
2       MATERIALIZED    t2      ALL     NULL    NULL    NULL    NULL    3       100.00  
1898
1898
Warnings:
1900
1900
SELECT * FROM t1
1901
1901
WHERE a IN (SELECT MAX(c) FROM t2) AND b=7 AND (a IS NULL OR a=b);
1902
1902
a       b
 
1903
7       7
1903
1904
EXPLAIN
1904
1905
SELECT * FROM t1
1905
1906
WHERE a IN (SELECT MAX(c) FROM t2 WHERE c < 4) AND b=7 AND (a IS NULL OR a=b);
1906
1907
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1907
 
1       PRIMARY <subquery2>     const   distinct_key    distinct_key    4       const   1       Using where
 
1908
1       PRIMARY <subquery2>     const   distinct_key    distinct_key    4       const   1       
1908
1909
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    3       Using where; Using join buffer (flat, BNL join)
1909
1910
2       MATERIALIZED    t2      ALL     NULL    NULL    NULL    NULL    3       Using where
1910
1911
SELECT * FROM t1