mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19468 Hybrid type expressions return wrong format for FLOAT
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user