diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-08-16 10:53:20 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-08-16 10:53:20 -0400 |
commit | 47ed8cec46a489447e6d07f63faf382722333748 (patch) | |
tree | b0f44dadd1436db09c817cc93f841986b745dc43 /sql/ha_partition.cc | |
parent | ffcbf055677a06a44361f356f522f2aebeaac40f (diff) | |
parent | 2bf914b40e56e51757af6bd99dc6b24d2d00b3da (diff) | |
download | mariadb-git-47ed8cec46a489447e6d07f63faf382722333748.tar.gz |
Merge dator5.(none):/home/pappa/bug21143
into dator5.(none):/home/pappa/bug21388
sql/ha_partition.cc:
Auto merged
sql/sql_partition.cc:
Auto merged
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 10b531862fd..715f74db849 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -5155,13 +5155,12 @@ void ha_partition::print_error(int error, myf errflag) DBUG_ENTER("ha_partition::print_error"); /* Should probably look for my own errors first */ - /* monty: needs to be called for the last used partition ! */ DBUG_PRINT("enter", ("error: %d", error)); if (error == HA_ERR_NO_PARTITION_FOUND) m_part_info->print_no_partition_found(table); else - m_file[0]->print_error(error, errflag); + m_file[m_last_part]->print_error(error, errflag); DBUG_VOID_RETURN; } @@ -5171,8 +5170,7 @@ bool ha_partition::get_error_message(int error, String *buf) DBUG_ENTER("ha_partition::get_error_message"); /* Should probably look for my own errors first */ - /* monty: needs to be called for the last used partition ! */ - DBUG_RETURN(m_file[0]->get_error_message(error, buf)); + DBUG_RETURN(m_file[m_last_part]->get_error_message(error, buf)); } |