~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1460
1460
1       SIMPLE  D       system  PRIMARY NULL    NULL    NULL    1       
1461
1461
1       SIMPLE  DSAR    system  NULL    NULL    NULL    NULL    1       
1462
1462
1       SIMPLE  DT      range   t_id    t_id    2       NULL    2       Using where
1463
 
1       SIMPLE  DSA     ref     PRIMARY PRIMARY 8       const,test.DT.t_id,test.D.birthday      1       Using index
 
1463
1       SIMPLE  DSA     ref     PRIMARY PRIMARY 8       const,test.DT.t_id,func 1       Using index
1464
1464
SELECT * FROM t5 DU, t1 D, t4 DT, t2 DSA, t3 DSAR
1465
1465
WHERE DU.dog_id=D.dog_id AND D.dog_id=DT.dog_id AND D.birthday=DT.birthday AND
1466
1466
DT.t_id=DSA.t_id AND DT.birthday=DSA.birthday AND DSA.dog_id=DSAR.dog_id;
1477
1477
#
1478
1478
SELECT * FROM t5 JOIN (t1 JOIN t2 UNION SELECT * FROM t3 JOIN t4);
1479
1479
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1
 
1480
#
 
1481
# MDEV-4959: join of const table with NULL fields
 
1482
#
 
1483
CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
 
1484
INSERT INTO t1 VALUES (NULL);
 
1485
CREATE TABLE t2 (i2 int, a int, b int) ENGINE=MyISAM;
 
1486
CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2;
 
1487
INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3);
 
1488
SELECT * FROM t1 JOIN v2 ON i1 = i2 WHERE a < b;
 
1489
i1      i2      a       b
 
1490
EXPLAIN EXTENDED
 
1491
SELECT * FROM t1 JOIN v2 ON i1 = i2 WHERE a < b;
 
1492
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
1493
1       PRIMARY NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE noticed after reading const tables
 
1494
2       DERIVED t2      ALL     NULL    NULL    NULL    NULL    2       100.00  
 
1495
Warnings:
 
1496
Note    1003    select NULL AS `i1`,`v2`.`i2` AS `i2`,`v2`.`a` AS `a`,`v2`.`b` AS `b` from `test`.`v2` where ((`v2`.`i2` = NULL) and (`v2`.`a` < `v2`.`b`))
 
1497
DROP VIEW v2;
 
1498
DROP TABLE t1,t2;
1480
1499
SET optimizer_switch=@save_optimizer_switch;