Bug #17258 | Cast of x'hexstring' fails to cast if odd length hexstring is given. | ||
---|---|---|---|
Submitted: | 9 Feb 2006 1:43 | Modified: | 9 Feb 2006 12:41 |
Reporter: | Ralf Leidinger | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S4 (Feature request) |
Version: | 5.0.18-nt-max | OS: | Windows (windows xp sp2) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[9 Feb 2006 1:43]
Ralf Leidinger
[9 Feb 2006 10:53]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but it is not a bug. MySQL works with 1 or more bytes of data, for all data types. 1 byte is represented with 2 hexademical digits. Hence the failure to cast half-bytes to anything in any context.
[9 Feb 2006 12:41]
Valeriy Kravchuk
I changed my mind after some internal discussion. It is a reasonable feature request, easy to implement. SELECT 0x1 works anyway, so my reasoning above was not really valid.