Commit 6c9272f7 authored by Sergei Golubchik's avatar Sergei Golubchik

mysql 5.6 partitioning bugfix: doubly-reported error

parent 72c20282
...@@ -7887,7 +7887,10 @@ void ha_partition::print_error(int error, myf errflag) ...@@ -7887,7 +7887,10 @@ void ha_partition::print_error(int error, myf errflag)
if ((error == HA_ERR_NO_PARTITION_FOUND) && if ((error == HA_ERR_NO_PARTITION_FOUND) &&
! (thd->lex->alter_info.flags & Alter_info::ALTER_TRUNCATE_PARTITION)) ! (thd->lex->alter_info.flags & Alter_info::ALTER_TRUNCATE_PARTITION))
{
m_part_info->print_no_partition_found(table, errflag); m_part_info->print_no_partition_found(table, errflag);
DBUG_VOID_RETURN;
}
else if (error == HA_ERR_ROW_IN_WRONG_PARTITION) else if (error == HA_ERR_ROW_IN_WRONG_PARTITION)
{ {
/* Should only happen on DELETE or UPDATE! */ /* Should only happen on DELETE or UPDATE! */
......
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