Bug #108045 | On the negative result representation of the unary operator &, |,^,~ | ||
---|---|---|---|
Submitted: | 1 Aug 2022 12:06 | Modified: | 9 Aug 2022 8:43 |
Reporter: | chenglin Tian | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Operator | Severity: | S3 (Non-critical) |
Version: | 8.0.29 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[1 Aug 2022 12:06]
chenglin Tian
[1 Aug 2022 19:16]
MySQL Verification Team
Hi, Thanks for the report
[9 Aug 2022 8:43]
Roy Lyseng
Posted by developer: Not a bug. Bitwise AND contains the following documentation: Binary-string evaluation occurs when the arguments have a binary string type, and at least one of them is not a hexadecimal literal, bit literal, or NULL literal. Numeric evaluation occurs otherwise, with argument conversion to unsigned 64-bit integers as necessary. So, this is the expected behavior.