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
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue duplicates |
Component/s | N/A [ 14411 ] | |
Fix Version/s | N/A [ 14700 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |
Link |
This issue duplicates |
Workflow | MariaDB v3 [ 114553 ] | MariaDB v4 [ 158466 ] |
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)