Fixed a failure in partition_truncate.test.

This commit is contained in:
Igor Babaev 2013-07-08 12:55:11 -07:00
parent 66f1a848f4
commit f1848be746
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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