diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-05-14 21:47:38 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-05-15 07:21:00 +0400 |
commit | 462d6893977f31ffd4cb35f7eb76b521acfd1fb4 (patch) | |
tree | 38ada44127c26fc8c833988b09a42dbe22186c7c /sql/protocol.cc | |
parent | 49373397057aac63b4ce1557c941d508ea87be99 (diff) | |
download | mariadb-git-462d6893977f31ffd4cb35f7eb76b521acfd1fb4.tar.gz |
MDEV-19468 Hybrid type expressions return wrong format for FLOAT
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index edd084c2132..84ca4585a12 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -1209,7 +1209,7 @@ bool Protocol_text::store(float from, uint32 decimals, String *buffer) field_types[field_pos] == MYSQL_TYPE_FLOAT); field_pos++; #endif - buffer->set_real((double) from, decimals, thd->charset()); + Float(from).to_string(buffer, decimals); return net_store_data((uchar*) buffer->ptr(), buffer->length()); } |