summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-09-21 08:37:42 +0400
committerAlexander Barkov <bar@mariadb.com>2018-09-21 08:37:42 +0400
commit80bcb05b2451b89dd7e1355c9fde97c115b4bcb3 (patch)
tree05ea9ab3270e356039b90b1ab1ec12c5fa143b98 /sql/field.cc
parent327b2717219aaa8f9033895a2351a6ccd4655116 (diff)
parente07118946a82af60c7cc3804c321d3fd9a49f128 (diff)
downloadmariadb-git-80bcb05b2451b89dd7e1355c9fde97c115b4bcb3.tar.gz
Merge remote-tracking branch 'origin/5.5' into 10.0
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 1427e055324..2a3394be411 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -4083,7 +4083,8 @@ longlong Field_float::val_int(void)
{
float j;
float4get(j,ptr);
- return (longlong) rint(j);
+ bool error;
+ return double_to_longlong(j, false, &error);
}