Commit d7c7f5a9 authored by unknown's avatar unknown
Browse files

BUG#18198: Fixes

ascii on varchar now allowed


mysql-test/r/partition_error.result:
  ascii on varchar now allowed
mysql-test/t/partition_error.test:
  ascii on varchar now allowed
parent 66f51d15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -641,7 +641,7 @@ ERROR HY000: Partition constant is out of partition function domain
create table t1 (v varchar(12))
partition by range (ascii(v))
(partition p0 values less than (10));
ERROR HY000: This partition function is not allowed
drop table t1;
create table t1 (a int)
partition by hash (rand(a));
ERROR 42000: Constant/Random expression in (sub)partitioning function is not allowed near ')' at line 2
+1 −1
Original line number Diff line number Diff line
@@ -809,10 +809,10 @@ partition by range (a)
#
# Bug 18198 Partitions: Verify that erroneus partition functions doesn't work
#
-- error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
create table t1 (v varchar(12))
partition by range (ascii(v))
(partition p0 values less than (10));
drop table t1;

-- error 1064
create table t1 (a int)