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

« back to all changes in this revision

Viewing changes to mysql-test/t/partition_utf8.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Tests for Column list which requires utf8 output
 
2
--source include/have_partition.inc
 
3
set names utf8;
 
4
create table t1 (a varchar(2) character set cp1250)
 
5
partition by list columns (a)
 
6
( partition p0 values in (0x81));
 
7
show create table t1;
 
8
drop table t1;
 
9
create table t1 (a varchar(2) character set cp1250)
 
10
partition by list columns (a)
 
11
( partition p0 values in (0x80));
 
12
show create table t1;
 
13
drop table t1;
 
14
 
 
15
#
 
16
# BUG#48164, too long partition fields causes crash
 
17
#
 
18
--error ER_PARTITION_FIELDS_TOO_LONG
 
19
create table t1 (a varchar(1500), b varchar(1570))
 
20
partition by list columns(a,b)
 
21
( partition p0 values in (('a','b')));
 
22
 
 
23
create table t1 (a varchar(1023) character set utf8 collate utf8_spanish2_ci)
 
24
partition by range columns(a)
 
25
( partition p0 values less than ('CZ'),
 
26
  partition p1 values less than ('CH'),
 
27
  partition p2 values less than ('D'));
 
28
insert into t1 values ('czz'),('chi'),('ci'),('cg');
 
29
select * from t1 where a between 'cg' AND 'ci';
 
30
drop table t1;
 
31
 
 
32
#
 
33
# BUG#48163, Dagger in UCS2 not working as partition value
 
34
#
 
35
create table t1 (a varchar(2) character set ucs2)
 
36
partition by list columns (a)
 
37
(partition p0 values in (0x2020),
 
38
 partition p1 values in (''));
 
39
show create table t1;
 
40
insert into t1 values ('');
 
41
insert into t1 values (_ucs2 0x2020);
 
42
drop table t1;