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)
alter table t1 truncate partition p1,p1;
ERROR HY000: Incorrect partition name
alter table t1 truncate partition p0;
ERROR HY000: Incorrect partition name
ERROR HY000: Unknown partition 'p0' in table 't1'
drop table t1;
create table t1 (a int)
partition by list (a)
......
......@@ -11,7 +11,7 @@ partition by list (a)
(partition p1 values in (0));
--error ER_WRONG_PARTITION_NAME
alter table t1 truncate partition p1,p1;
--error ER_WRONG_PARTITION_NAME
--error ER_UNKNOWN_PARTITION
alter table t1 truncate partition p0;
drop table t1;
......
......@@ -110,7 +110,7 @@ bool partition_info::add_named_partition(const char *part_name,
length);
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);
}
......
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