Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
None
Description
SELECT
|
ROUND(18446744073709551615,rand()*0) AS c1, |
ROUND(18446744073709551615.0,rand()*0) AS c2; |
+----------------------+------------------------+
|
| c1 | c2 |
|
+----------------------+------------------------+
|
| 18446744073709552000 | 18446744073709551615.0 |
|
+----------------------+------------------------+
|
The result for c1 is wrong. It should be equal to 18446744073709551615, like c2, just without the '.0' part.
Attachments
Issue Links
- relates to
-
MDEV-23032 FLOOR()/CEIL() incorrectly calculate the precision of a DECIMAL(M,D) column.
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Description |
{code:sql}
SELECT ROUND(18446744073709551615,rand()*0) AS c1, ROUND(18446744073709551615.0,rand()*0) AS c2; {code} {noformat} +----------------------+------------------------+ | c1 | c2 | +----------------------+------------------------+ | 18446744073709552000 | 18446744073709551615.0 | +----------------------+------------------------+ {noformat} The result for c1 is wrong. It should be equal to 18446744073709552000, like in c2, just without the '.0' part. |
{code:sql}
SELECT ROUND(18446744073709551615,rand()*0) AS c1, ROUND(18446744073709551615.0,rand()*0) AS c2; {code} {noformat} +----------------------+------------------------+ | c1 | c2 | +----------------------+------------------------+ | 18446744073709552000 | 18446744073709551615.0 | +----------------------+------------------------+ {noformat} The result for c1 is wrong. It should be equal to 18446744073709551615, like c2, just without the '.0' part. |
issue.field.resolutiondate | 2020-08-03 06:54:56.0 | 2020-08-03 06:54:56.417 |
Fix Version/s | 10.4.14 [ 24305 ] | |
Fix Version/s | 10.5.5 [ 24423 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 111881 ] | MariaDB v4 [ 158183 ] |