Commit f1848be7 authored by Igor Babaev's avatar Igor Babaev

Fixed a failure in partition_truncate.test.

parent 66f1a848
...@@ -5,7 +5,7 @@ partition by list (a) ...@@ -5,7 +5,7 @@ partition by list (a)
alter table t1 truncate partition p1,p1; alter table t1 truncate partition p1,p1;
ERROR HY000: Incorrect partition name ERROR HY000: Incorrect partition name
alter table t1 truncate partition p0; alter table t1 truncate partition p0;
ERROR HY000: Incorrect partition name ERROR HY000: Unknown partition 'p0' in table 't1'
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
partition by list (a) partition by list (a)
......
...@@ -11,7 +11,7 @@ partition by list (a) ...@@ -11,7 +11,7 @@ partition by list (a)
(partition p1 values in (0)); (partition p1 values in (0));
--error ER_WRONG_PARTITION_NAME --error ER_WRONG_PARTITION_NAME
alter table t1 truncate partition p1,p1; alter table t1 truncate partition p1,p1;
--error ER_WRONG_PARTITION_NAME --error ER_UNKNOWN_PARTITION
alter table t1 truncate partition p0; alter table t1 truncate partition p0;
drop table t1; drop table t1;
......
...@@ -110,7 +110,7 @@ bool partition_info::add_named_partition(const char *part_name, ...@@ -110,7 +110,7 @@ bool partition_info::add_named_partition(const char *part_name,
length); length);
if (!part_def) if (!part_def)
{ {
// my_error(ER_UNKNOWN_PARTITION, MYF(0), part_name, table->alias); my_error(ER_UNKNOWN_PARTITION, MYF(0), part_name, table->alias.c_ptr());
DBUG_RETURN(true); DBUG_RETURN(true);
} }
......
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