BUG#18198: Fixes

ascii on varchar now allowed
parent fbd15d25
...@@ -641,7 +641,7 @@ ERROR HY000: Partition constant is out of partition function domain ...@@ -641,7 +641,7 @@ ERROR HY000: Partition constant is out of partition function domain
create table t1 (v varchar(12)) create table t1 (v varchar(12))
partition by range (ascii(v)) partition by range (ascii(v))
(partition p0 values less than (10)); (partition p0 values less than (10));
ERROR HY000: This partition function is not allowed drop table t1;
create table t1 (a int) create table t1 (a int)
partition by hash (rand(a)); partition by hash (rand(a));
ERROR 42000: Constant/Random expression in (sub)partitioning function is not allowed near ')' at line 2 ERROR 42000: Constant/Random expression in (sub)partitioning function is not allowed near ')' at line 2
......
...@@ -809,10 +809,10 @@ partition by range (a) ...@@ -809,10 +809,10 @@ partition by range (a)
# #
# Bug 18198 Partitions: Verify that erroneus partition functions doesn't work # Bug 18198 Partitions: Verify that erroneus partition functions doesn't work
# #
-- error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
create table t1 (v varchar(12)) create table t1 (v varchar(12))
partition by range (ascii(v)) partition by range (ascii(v))
(partition p0 values less than (10)); (partition p0 values less than (10));
drop table t1;
-- error 1064 -- error 1064
create table t1 (a int) create table t1 (a int)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment