summaryrefslogtreecommitdiff
path: root/sql/my_decimal.cc
diff options
context:
space:
mode:
authorholyfoot@hf-ibm.(none) <>2005-05-06 19:04:58 +0500
committerholyfoot@hf-ibm.(none) <>2005-05-06 19:04:58 +0500
commit5aa0edf34c4bf83eace609e2e60b448fcb9553fe (patch)
tree9567d00a7dd4b1a7be9aa7f2d48b28753a9c1a52 /sql/my_decimal.cc
parent82f4a0b021d68b30112d5f0c33118b6412e62d69 (diff)
downloadmariadb-git-5aa0edf34c4bf83eace609e2e60b448fcb9553fe.tar.gz
Trimmed fix for bug #9546 (Crashing with huge decimals)
Diffstat (limited to 'sql/my_decimal.cc')
-rw-r--r--sql/my_decimal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/my_decimal.cc b/sql/my_decimal.cc
index 14c15cdc4ef..f188d27ff78 100644
--- a/sql/my_decimal.cc
+++ b/sql/my_decimal.cc
@@ -43,9 +43,9 @@ int decimal_operation_results(int result)
break;
case E_DEC_OVERFLOW:
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
- ER_WARN_DATA_OUT_OF_RANGE,
- ER(ER_WARN_DATA_OUT_OF_RANGE),
- "", (long)-1);
+ ER_TRUNCATED_WRONG_VALUE,
+ ER(ER_TRUNCATED_WRONG_VALUE),
+ "DECIMAL", "");
break;
case E_DEC_DIV_ZERO:
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,