summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index d76ab529db5..f41cb720f12 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1347,7 +1347,7 @@ bool Item::send(Protocol *protocol, String *buffer)
case MYSQL_TYPE_FLOAT:
{
float nr;
- nr= val();
+ nr= (float) val();
if (!null_value)
result= protocol->store(nr, decimals, buffer);
break;