mysql 5.6 partitioning bugfix: doubly-reported error
This commit is contained in:
parent
72c20282db
commit
6c9272f7d5
@ -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! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user