Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 10.9.4
-
Fix Version/s: N/A
-
Component/s: Data types
-
Labels:None
-
Environment:mariadb docker
Description
Consider the following statements:
SELECT mod(-12,-4); – expected: 0, actual: 0
SELECT mod('-12',-4); – expected: 0, actual: -0
the result of these two test cases is different, We expect them to be the same.
database version : 10.9.4-MariaDB-1:10.9.4+maria~ubu2204
Attachments
Issue Links
- duplicates
-
MDEV-6856 <negative value> MOD <fractional divisor> returns negative zero
-
- Open
-