diff options
author | unknown <ramil@mysql.com> | 2005-11-28 14:52:38 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-11-28 14:52:38 +0400 |
commit | 6cc4218f217de29de43aaae07f1137d9cdfb6e65 (patch) | |
tree | aa9c1450ecf6fe9c5aec8b003a7fb5bead9fd02b /sql/item_func.cc | |
parent | 57e1c5aa9a56bbe75f3a0bc8344b3a1346438bbb (diff) | |
download | mariadb-git-6cc4218f217de29de43aaae07f1137d9cdfb6e65.tar.gz |
Fix for bug #12956: cast make differ rounding.
sql/item_func.cc:
Fix for bug #12956: cast make differ rounding.
- call rint() as we do in the Field_*int*::store(double)
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index c20a774e57e..b4c4cf580cd 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -735,7 +735,7 @@ longlong Item_func_numhybrid::val_int() case INT_RESULT: return int_op(); case REAL_RESULT: - return (longlong)real_op(); + return (longlong) rint(real_op()); case STRING_RESULT: { int err_not_used; |