Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not a Bug
-
10.9.4
-
None
-
mariadb docker
Description
When we use the division function to calculate, we find that if there is a negative number type string, the result will be inconsistent with the expectation
select 0/-4; – actual: 0.0000, expect: 0
select '0'/-4; – actual: -0, expect: 0
MySQL has verified this as a bug. please see https://bugs.mysql.com/bug.php?id=109837. so I consider it also a bug for mariadb.
Attachments
Issue Links
- duplicates
-
MDEV-6856 <negative value> MOD <fractional divisor> returns negative zero
- Open