This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Float results get truncated #450
Closed
Description
I'm trying to implement #392 and I noticed that the float64 results get truncated as integers.
I've also tested via another function AVG and that is also happening. For example:
Mysql-8
mysql> select avg(23.222);
+-------------+
| avg(23.222) |
+-------------+
| 23.2220000 |
+-------------+
1 row in set (0.01 sec)
go-mysql-server
mysql> select avg(23.222);
+-------------+
| AVG(23.222) |
+-------------+
| 23 |
+-------------+
1 row in set (0.00 sec)
Until that is solved some issues cannot go forward