Bug #48393 | BIT datatype -- incorrect display of value | ||
---|---|---|---|
Submitted: | 28 Oct 2009 22:07 | Modified: | 28 Oct 2009 22:33 |
Reporter: | John David Duncan | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.1.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[28 Oct 2009 22:07]
John David Duncan
[28 Oct 2009 22:33]
MySQL Verification Team
Thank you for the bug report. Please read: http://dev.mysql.com/doc/refman/5.1/en/bit-field-values.html "Bit values are returned as binary values. To display them in printable form, add 0 or use a conversion function such as BIN(). High-order 0 bits are not displayed in the converted....." Thanks in advance.
[28 Aug 2016 23:20]
Rick James
"Add 0" does not work, but "OR zero does: SELECT bit_col | 0, ...