From 9e338cf4c828a353d9ca4909a068006dbda09f80 Mon Sep 17 00:00:00 2001 From: "holyfoot@deer.(none)" <> Date: Wed, 18 Jan 2006 19:27:10 +0400 Subject: [PATCH] bug #15910 (Wrong value on error message) --- sql/ha_partition.cc | 5 ++++- sql/share/errmsg.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index e88570e4435..61ffa49def2 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -5009,8 +5009,11 @@ void ha_partition::print_error(int error, myf errflag) DBUG_PRINT("enter", ("error = %d", error)); if (error == HA_ERR_NO_PARTITION_FOUND) + { + char buf[100]; my_error(ER_NO_PARTITION_FOR_GIVEN_VALUE, MYF(0), - m_part_info->part_expr->val_int()); + llstr(m_part_info->part_expr->val_int(), buf)); + } else m_file[0]->print_error(error, errflag); DBUG_VOID_RETURN; diff --git a/sql/share/errmsg.txt b/sql/share/errmsg.txt index 76f0cdeebe5..38b1666c236 100644 --- a/sql/share/errmsg.txt +++ b/sql/share/errmsg.txt @@ -5738,7 +5738,7 @@ ER_PLUGIN_IS_NOT_LOADED ER_WRONG_VALUE eng "Incorrect %-.32s value: '%-.128s'" ER_NO_PARTITION_FOR_GIVEN_VALUE - eng "Table has no partition for value %ld" + eng "Table has no partition for value %-.64s" ER_TABLESPACE_OPTION_ONLY_ONCE eng "It is not allowed to specify %s more than once" ER_CREATE_TABLESPACE_FAILED