BUG#18198: Fixes

ascii on varchar now allowed
This commit is contained in:
mikael/pappa@dator5.(none) 2006-08-02 08:06:46 -04:00
parent fbd15d253d
commit 9711ee848c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)