Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.4.15
-
None
-
docker node:12-alpine
Description
I have the following query "SELECT 6/101*100"
In mariadb-10.4.13 it returns "5.9406"
In mariadb-10.4.15 it returns "5.9400"
Attached the output of "SHOW VARIABLES"
Attachments
Issue Links
- is duplicated by
-
MDEV-23702 calculating(auto rounding) issue
-
- Closed
-
Thanks!
MDEV-23702was reported for the same bug, If you'd like to follow the progress, please, watch taskMDEV-23702.As a temporary workaround, one could change div_precision_increment:
MariaDB [(none)]> SELECT 6/101*100;
+-----------+
| 6/101*100 |
+-----------+
| 5.9400 |
+-----------+
1 row in set (0.001 sec)
MariaDB [(none)]> set div_precision_increment=8;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> SELECT 6/101*100;
+------------+
| 6/101*100 |
+------------+
| 5.94059400 |
+------------+
1 row in set (0.000 sec)