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

« back to all changes in this revision

Viewing changes to mysql-test/r/order_by.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:
357
357
explain select * from t1 where a = 1 order by b desc;
358
358
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
359
359
1       SIMPLE  t1      ref     a       a       4       const   5       Using where; Using index
 
360
explain select * from t1 where a = 2 and b > 0 order by a desc,b desc,b,a;
 
361
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
362
1       SIMPLE  t1      range   a       a       9       NULL    5       Using where; Using index
 
363
explain select * from t1 where a = 2 and b < 2 order by a desc,a,b desc,a,b;
 
364
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
365
1       SIMPLE  t1      range   a       a       9       NULL    2       Using where; Using index
360
366
select * from t1 where a = 1 order by b desc;
361
367
a       b       c
362
368
1       3       b
2020
2026
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    8       Using index
2021
2027
1       SIMPLE  t2      ref     i_a     i_a     5       test.t1.a       2       Using index
2022
2028
DROP TABLE t1,t2;
 
2029
#
 
2030
# MDEV-4974 memory leak in 5.5.32-MariaDB-1~wheezy-log
 
2031
#
 
2032
set sort_buffer_size=default;
 
2033
set max_sort_length=default;
 
2034
create table t1(a int);
 
2035
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
 
2036
create table t2 (b int,
 
2037
col1 varchar(255),
 
2038
col2 varchar(255)
 
2039
) character set utf8;
 
2040
insert into t2 select 
 
2041
A.a+10*B.a,
 
2042
concat('wow-wow-col1-value-', A.a+10*B.a+100*C.a),
 
2043
concat('wow-wow-col2-value-', A.a+10*B.a+100*C.a)
 
2044
from 
 
2045
t1 A, t1 B, t1 C where C.a < 8;
 
2046
create table t3 as 
 
2047
select distinct A.col1 as XX, B.col1 as YY
 
2048
from 
 
2049
t2 A, t2 B 
 
2050
where A.b = B.b
 
2051
order by A.col2, B.col2 limit 10, 1000000;
 
2052
drop table t1,t2,t3;
2023
2053
End of 5.5 tests