Bug #73249 | Inconsistent behavior when doing subtraction on columns | ||
---|---|---|---|
Submitted: | 9 Jul 2014 20:06 | Modified: | 14 Jul 2014 17:18 |
Reporter: | CJ Keeney | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.5.36-log, 5.6.38, 5.6.20 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | decimal, INT, signed, UNSIGNED |
[9 Jul 2014 20:06]
CJ Keeney
[14 Jul 2014 12:07]
MySQL Verification Team
Hello Keeney, Thank you for the report. Verified as described. Please see some details given about DECIMAL http://dev.mysql.com/doc/refman/5.5/en/out-of-range-and-overflow.html Thanks, Umesh
[14 Jul 2014 17:18]
CJ Keeney
Yes I read over that before I submitted the bug report. I think the issue is that the mantissa of the decimal does not include the sign bit, but the mantissa of integers and similar types does include the sign bit. I think by default these 2 operations should behave identically. Do you agree or just think this is a case of RTFM?