Bug #43865 | CAST( -1.0 as UNSIGNED) yields 0 instead of MAXINT and returns a warning. | ||
---|---|---|---|
Submitted: | 25 Mar 2009 20:04 | Modified: | 4 Aug 2020 23:47 |
Reporter: | Justin Swanhart | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.1.30, 5.0, 5.1, 6.0 bzr | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[25 Mar 2009 20:04]
Justin Swanhart
[26 Mar 2009 6:48]
Sveta Smirnova
Thank you for the report. Verified as described. Workaround: cast(cast(DECIMAL_VALUE as signed) as unsigned);
[16 Aug 2013 19:56]
Justin Swanhart
Still a problem in 5.6.13
[4 Aug 2020 23:47]
Justin Swanhart
Fixed in 8.0.21 not sure when it was fixed or if it still affects other versions.