~maria-captains/maria/mysql-6.0-backup

« back to all changes in this revision

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

  • Committer: Thava Alagu
  • Date: 2010-03-11 19:18:17 UTC
  • mfrom: (3719.14.62 mysql-6.0-codebase)
  • Revision ID: thavamuni.alagu@sun.com-20100311191817-5nigmq884xo9fuut
Merge from mysql-6.0-codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1500
1500
1       PRIMARY t3      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where
1501
1501
2       SUBQUERY        t2      system  NULL    NULL    NULL    NULL    0       0.00    const row not found
1502
1502
Warnings:
1503
 
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>((`test`.`t3`.`a` < (select max('0') from `test`.`t2`)))
 
1503
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>((`test`.`t3`.`a` < (select max(NULL) from `test`.`t2`)))
1504
1504
select * from t3 where a >= some (select b from t2);
1505
1505
a
1506
1506
explain extended select * from t3 where a >= some (select b from t2);
1508
1508
1       PRIMARY t3      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where
1509
1509
2       SUBQUERY        t2      system  NULL    NULL    NULL    NULL    0       0.00    const row not found
1510
1510
Warnings:
1511
 
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>((`test`.`t3`.`a` >= (select min('0') from `test`.`t2`)))
 
1511
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>((`test`.`t3`.`a` >= (select min(NULL) from `test`.`t2`)))
1512
1512
select * from t3 where a >= all (select b from t2 group by 1);
1513
1513
a
1514
1514
6
1519
1519
1       PRIMARY t3      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where
1520
1520
2       SUBQUERY        t2      system  NULL    NULL    NULL    NULL    0       0.00    const row not found
1521
1521
Warnings:
1522
 
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>((`test`.`t3`.`a` < <max>(select '0' AS `b` from `test`.`t2` group by 1)))
 
1522
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <not>((`test`.`t3`.`a` < <max>(select NULL AS `b` from `test`.`t2` group by 1)))
1523
1523
select * from t3 where a >= some (select b from t2 group by 1);
1524
1524
a
1525
1525
explain extended select * from t3 where a >= some (select b from t2 group by 1);
1527
1527
1       PRIMARY t3      ALL     NULL    NULL    NULL    NULL    3       100.00  Using where
1528
1528
2       SUBQUERY        t2      system  NULL    NULL    NULL    NULL    0       0.00    const row not found
1529
1529
Warnings:
1530
 
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>((`test`.`t3`.`a` >= <min>(select '0' AS `b` from `test`.`t2` group by 1)))
 
1530
Note    1003    select `test`.`t3`.`a` AS `a` from `test`.`t3` where <nop>((`test`.`t3`.`a` >= <min>(select NULL AS `b` from `test`.`t2` group by 1)))
1531
1531
select * from t3 where NULL >= any (select b from t2);
1532
1532
a
1533
1533
explain extended select * from t3 where NULL >= any (select b from t2);
5104
5104
);
5105
5105
1
5106
5106
DROP TABLE t1;
 
5107
#
 
5108
# Bug #45989 take 2 : memory leak after explain encounters an 
 
5109
# error in the query
 
5110
#
 
5111
CREATE TABLE t1(a LONGTEXT);
 
5112
INSERT INTO t1 VALUES (repeat('a',@@global.max_allowed_packet));
 
5113
INSERT INTO t1 VALUES (repeat('b',@@global.max_allowed_packet));
 
5114
EXPLAIN EXTENDED SELECT DISTINCT 1 FROM t1,
 
5115
(SELECT DISTINCTROW a AS away FROM t1 GROUP BY a WITH ROLLUP) AS d1  
 
5116
WHERE t1.a = d1.a;
 
5117
ERROR 42S22: Unknown column 'd1.a' in 'where clause'
 
5118
DROP TABLE t1;
5107
5119
End of 5.1 tests.