~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
Import upstream version 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test for character set related things in combination
 
3
# with the partition storage engine
 
4
 
5
-- source include/have_partition.inc
 
6
 
 
7
--disable_warnings
 
8
drop table if exists t1;
 
9
--enable_warnings
 
10
 
 
11
set names utf8;
 
12
create table t1 (s1 int)
 
13
  partition by list (s1)
 
14
    (partition c values in (1),
 
15
     partition Ç values in (3));
 
16
insert into t1 values (1),(3);
 
17
select * from t1;
 
18
flush tables;
 
19
set names latin1;
 
20
select * from t1;
 
21
drop table t1;
 
22
 
 
23
-- error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
 
24
create table t1 (a varchar(1), primary key (a))
 
25
partition by list (ascii(a))
 
26
(partition p1 values in (65));
 
27
#insert into t1 values ('A');
 
28
#replace into t1 values ('A');
 
29
#drop table t1;