~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1397
1397
Warnings:
1398
1398
Note    1003    select straight_join `test`.`jt1`.`f1` AS `f1` from `test`.`t1` `jt6` left join (`test`.`t1` `jt3` join `test`.`t1` `jt4` left join `test`.`t1` `jt5` on(1) left join `test`.`t1` `jt2` on(1)) on((`test`.`jt6`.`f1` and 1)) left join `test`.`t1` `jt1` on(1) where 1
1399
1399
DROP TABLE t1;
 
1400
#
 
1401
# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
 
1402
#
 
1403
CREATE TABLE t1 (f1 INT NOT NULL, PRIMARY KEY (f1));
 
1404
CREATE TABLE t2 (f1 INT NOT NULL, f2 INT NOT NULL, PRIMARY KEY (f1, f2));
 
1405
INSERT INTO t1 VALUES (4);
 
1406
INSERT INTO t2 VALUES (3, 3);
 
1407
INSERT INTO t2 VALUES (7, 7);
 
1408
EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
 
1409
WHERE t1.f1 = 4
 
1410
GROUP BY t2.f1, t2.f2;
 
1411
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
1412
1       SIMPLE  t1      system  PRIMARY NULL    NULL    NULL    1       Using temporary; Using filesort
 
1413
1       SIMPLE  t2      ref     PRIMARY PRIMARY 4       const   1       Using index
 
1414
SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
 
1415
WHERE t1.f1 = 4
 
1416
GROUP BY t2.f1, t2.f2;
 
1417
f1      f1      f2
 
1418
4       NULL    NULL
 
1419
EXPLAIN SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
 
1420
WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
 
1421
GROUP BY t2.f1, t2.f2;
 
1422
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
1423
1       SIMPLE  t1      system  PRIMARY NULL    NULL    NULL    1       Using filesort
 
1424
1       SIMPLE  t2      ref     PRIMARY PRIMARY 4       const   1       Using where; Using index
 
1425
SELECT * FROM t1 LEFT JOIN t2 ON t2.f1 = t1.f1
 
1426
WHERE t1.f1 = 4 AND t2.f1 IS NOT NULL AND t2.f2 IS NOT NULL
 
1427
GROUP BY t2.f1, t2.f2;
 
1428
f1      f1      f2
 
1429
DROP TABLE t1,t2;
1400
1430
End of 5.1 tests