diff options
author | unknown <hf@deer.(none)> | 2005-10-15 21:57:32 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-10-15 21:57:32 +0500 |
commit | a1db45674b20c36212acf3bc647134372d048b62 (patch) | |
tree | d4f623548567a998d3362e8b80be5f13d0de8c08 /sql/my_decimal.cc | |
parent | 11541107b83d8e361722dff601192bd7d7f70ca9 (diff) | |
download | mariadb-git-a1db45674b20c36212acf3bc647134372d048b62.tar.gz |
Fix for bug #13573 (wrong data inserted for too big decimals)
mysql-test/r/type_newdecimal.result:
result fixed
mysql-test/t/type_newdecimal.test:
test case added
sql/item_func.cc:
conditions fixed
sql/my_decimal.cc:
overflow handling added
sql/my_decimal.h:
overflow handling added - so the result of operation gets maximum possible
decimal value
Diffstat (limited to 'sql/my_decimal.cc')
-rw-r--r-- | sql/my_decimal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/my_decimal.cc b/sql/my_decimal.cc index f188d27ff78..1bd16940b47 100644 --- a/sql/my_decimal.cc +++ b/sql/my_decimal.cc @@ -185,7 +185,7 @@ int str2my_decimal(uint mask, const char *from, uint length, } } } - check_result(mask, err); + check_result_and_overflow(mask, err, decimal_value); return err; } |