summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-11-28 14:52:38 +0400
committerunknown <ramil@mysql.com>2005-11-28 14:52:38 +0400
commit6cc4218f217de29de43aaae07f1137d9cdfb6e65 (patch)
treeaa9c1450ecf6fe9c5aec8b003a7fb5bead9fd02b /sql/item_func.cc
parent57e1c5aa9a56bbe75f3a0bc8344b3a1346438bbb (diff)
downloadmariadb-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.cc2
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;