summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_column.test
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-22 18:17:59 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-10-22 18:17:59 +0200
commitcecef1c56ecd595218cf08832e2e2fa68aa7c252 (patch)
treea1be6428de363a1e7a89cd3384f3f72b7da57081 /mysql-test/t/partition_column.test
parent6f27ad15b208091d3904bb4f73ffab2871f99581 (diff)
downloadmariadb-git-cecef1c56ecd595218cf08832e2e2fa68aa7c252.tar.gz
BUG#46183, added character set identifier on character constants in VALUES part for column list partitioned tables to ensure constants are handled properly according to character sets
Diffstat (limited to 'mysql-test/t/partition_column.test')
-rw-r--r--mysql-test/t/partition_column.test24
1 files changed, 13 insertions, 11 deletions
diff --git a/mysql-test/t/partition_column.test b/mysql-test/t/partition_column.test
index 13f422d32f4..6c39557f296 100644
--- a/mysql-test/t/partition_column.test
+++ b/mysql-test/t/partition_column.test
@@ -8,6 +8,18 @@
drop table if exists t1;
--enable_warnings
+#
+# BUG#48163, Dagger in UCS2 not working as partition value
+#
+create table t1 (a varchar(2) character set ucs2)
+partition by list column_list (a)
+(partition p0 values in (0x2020),
+ partition p1 values in (''));
+show create table t1;
+insert into t1 values ('');
+insert into t1 values (_ucs2 0x2020);
+drop table t1;
+
create table t1 (a int, b char(10), c varchar(25), d datetime)
partition by range column_list(a,b,c,d)
subpartition by hash (to_seconds(d))
@@ -18,19 +30,9 @@ subpartitions 4
partition p3 values less than (1, MAXVALUE, MAXVALUE, MAXVALUE));
select partition_method, partition_expression, partition_description
from information_schema.partitions where table_name = "t1";
-#show create table t1;
+show create table t1;
drop table t1;
-#
-# BUG#48163, Dagger in UCS2 not working as partition value
-#
-#create table t1 (a varchar(2) character set ucs2)
-#partition by list column_list (a)
-#(partition p0 values in (0x2020),
-# partition p1 values in (''));
-#insert into t1 values ('');
-#drop table t1;
-
--error ER_NULL_IN_VALUES_LESS_THAN
create table t1 (a int, b int)
partition by range column_list (a,b)