diff --git a/mysql-test/r/partition_error.result b/mysql-test/r/partition_error.result index 87ae1d62a04..6ded066c3ec 100644 --- a/mysql-test/r/partition_error.result +++ b/mysql-test/r/partition_error.result @@ -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 diff --git a/mysql-test/t/partition_error.test b/mysql-test/t/partition_error.test index 2c0706cb2cb..a9efbc587be 100644 --- a/mysql-test/t/partition_error.test +++ b/mysql-test/t/partition_error.test @@ -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)