Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
Description
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a DECIMAL(30,0));
|
INSERT INTO t1 VALUES (CAST(0xFFFFFFFFFFFFFFFF AS UNSIGNED));
|
SELECT * FROM t1;
|
returns
+----------------------+
|
| a |
|
+----------------------+
|
| 18446744073709551615 |
|
+----------------------+
|
So far so good.
Now if I do:
ALTER TABLE t1 MODIFY a BIGINT UNSIGNED;
|
SELECT * FROM t1;
|
it erroneously returns:
+---------------------+
|
| a |
|
+---------------------+
|
| 9223372036854775807 |
|
+---------------------+
|
The expected result is 18446744073709551615.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed