Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 11.8, 12.1
-
None
Description
Hi,
In the following test case, the double negation of the boundary value `9223372036854775808` executes correctly in normal select, but triggers an integer overflow in the prepared statement.
SELECT CEILING((- (-9223372036854775808))); -- 9223372036854775808 |
SET @a = -9223372036854775808; |
PREPARE prepare_query FROM 'SELECT CEILING((- (?)))'; |
EXECUTE prepare_query USING @a; -- BIGINT value is out of range in '--9223372036854775808' |
Attachments
Issue Links
- relates to
-
MDEV-14910 Unexpected "BIGINT UNSIGNED value is out of range" for minus
-
- Confirmed
-
-
MDEV-20343 CAST("18446744073709552001" AS INT) returns a wrong result
-
- Confirmed
-