summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
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 976437d694b..ff315aef458 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -858,7 +858,7 @@ String *Item_func_hybrid_field_type::val_str_from_real_op(String *str)
longlong Item_func_hybrid_field_type::val_int_from_real_op()
{
- return (longlong) rint(real_op());
+ return Converter_double_to_longlong(real_op(), unsigned_flag).result();
}
my_decimal *