Bug #32486 | problem with bitwise and (&) operator | ||
---|---|---|---|
Submitted: | 19 Nov 2007 4:52 | Modified: | 19 Nov 2007 5:16 |
Reporter: | Frank Campagna | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.45 | OS: | MacOS |
Assigned to: | CPU Architecture: | Any | |
Tags: | and, Bitwise, Minus, operand, operator, xor |
[19 Nov 2007 4:52]
Frank Campagna
[19 Nov 2007 5:16]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but formally it is NOT a bug. Please, read the manual, http://dev.mysql.com/doc/refman/5.0/en/bit-functions.html#operator_bitwise-and: "The result is an unsigned 64-bit integer." and http://dev.mysql.com/doc/refman/5.0/en/arithmetic-functions.html: "If one of the arguments is an unsigned integer, and the other argument is also an integer, the result is an unsigned integer." So, when we do "unsigned" - "unsigned" we get "unsigned" :(