#At file:///home/mikael/mysql_clones/mysql-next-wl3352/
2918 Mikael Ronstrom 2009-11-02
Added test case for UTF8 strings in partition constants
modified:
mysql-test/r/partition_column.result
mysql-test/t/partition_column.test
=== modified file 'mysql-test/r/partition_column.result'
--- a/mysql-test/r/partition_column.result 2009-10-30 20:44:41 +0000
+++ b/mysql-test/r/partition_column.result 2009-11-02 10:03:40 +0000
@@ -28,6 +28,15 @@ create table t1 (a varchar(2) character
partition by list columns (a)
(partition p0 values in (0x2020),
partition p1 values in (''));
+set names utf8;
+show create table t1;
+Table Create Table
+t1 CREATE TABLE `t1` (
+ `a` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1
+/*!50100 PARTITION BY LIST COLUMNS(a)
+(PARTITION p0 VALUES IN ('†') ENGINE = MyISAM,
+ PARTITION p1 VALUES IN ('') ENGINE = MyISAM) */
insert into t1 values ('');
insert into t1 values (_ucs2 0x2020);
drop table t1;
=== modified file 'mysql-test/t/partition_column.test'
--- a/mysql-test/t/partition_column.test 2009-10-30 20:44:41 +0000
+++ b/mysql-test/t/partition_column.test 2009-11-02 10:03:40 +0000
@@ -47,6 +47,8 @@ create table t1 (a varchar(2) character
partition by list columns (a)
(partition p0 values in (0x2020),
partition p1 values in (''));
+set names utf8;
+show create table t1;
insert into t1 values ('');
insert into t1 values (_ucs2 0x2020);
drop table t1;
| Thread |
|---|
| • bzr commit into mysql-5.5-next-mr branch (mikael:2918) | Mikael Ronstrom | 2 Nov |