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

« back to all changes in this revision

Viewing changes to storage/tokudb/mysql-test/tokudb/r/ctype_cp1251.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:
 
1
SET DEFAULT_STORAGE_ENGINE='tokudb';
 
2
drop table if exists t1;
 
3
SET NAMES cp1251;
 
4
create table t1 (a varchar(10) not null) character set cp1251;
 
5
insert into t1 values ("a"),("ab"),("abc");
 
6
select * from t1;
 
7
a
 
8
a
 
9
ab
 
10
abc
 
11
select a, left(a,1) as b from t1;
 
12
a       b
 
13
a       a
 
14
ab      a
 
15
abc     a
 
16
select a, left(a,1) as b from t1 group by a;
 
17
a       b
 
18
a       a
 
19
ab      a
 
20
abc     a
 
21
SELECT DISTINCT RIGHT(a,1) from t1;
 
22
RIGHT(a,1)
 
23
a
 
24
b
 
25
c
 
26
drop table t1;
 
27
create table t1 (a char(3) binary, b binary(3)) character set cp1251;
 
28
insert into t1 values ('aaa','bbb'),('AAA','BBB');
 
29
select upper(a),upper(b) from t1;
 
30
upper(a)        upper(b)
 
31
AAA     bbb
 
32
AAA     BBB
 
33
select lower(a),lower(b) from t1;
 
34
lower(a)        lower(b)
 
35
aaa     bbb
 
36
aaa     BBB
 
37
select * from t1 where upper(a)='AAA';
 
38
a       b
 
39
aaa     bbb
 
40
AAA     BBB
 
41
select * from t1 where lower(a)='aaa';
 
42
a       b
 
43
aaa     bbb
 
44
AAA     BBB
 
45
select * from t1 where upper(b)='BBB';
 
46
a       b
 
47
AAA     BBB
 
48
select * from t1 where lower(b)='bbb';
 
49
a       b
 
50
aaa     bbb
 
51
select charset(a), charset(b), charset(binary 'ccc') from t1 limit 1;
 
52
charset(a)      charset(b)      charset(binary 'ccc')
 
53
cp1251  binary  binary
 
54
select collation(a), collation(b), collation(binary 'ccc') from t1 limit 1;
 
55
collation(a)    collation(b)    collation(binary 'ccc')
 
56
cp1251_bin      binary  binary
 
57
drop table t1;
 
58
create table t1 (
 
59
a varchar(16) character set cp1251 collate cp1251_bin not null,
 
60
b int(10) default null,
 
61
primary key(a)
 
62
) charset=cp1251;
 
63
insert into t1 (a) values ('air'),
 
64
('we'),('g'),('we_toshko'), ('s0urce'),('we_ivo'),('we_iliyan'),
 
65
('we_martin'),('vw_grado'),('vw_vasko'),('tn_vili'),('tn_kalina'),
 
66
('tn_fakira'),('vw_silvia'),('vw_starshi'),('vw_geo'),('vw_b0x1');
 
67
select * from t1 where a like 'we_%';
 
68
a       b
 
69
we_iliyan       NULL
 
70
we_ivo  NULL
 
71
we_martin       NULL
 
72
we_toshko       NULL
 
73
drop table t1;