Bug #7739 | UPPER(CONCAT(...)) lowercase when CONCAT() deals with mixed types | ||
---|---|---|---|
Submitted: | 7 Jan 2005 23:04 | Modified: | 8 Jan 2005 13:54 |
Reporter: | Daniel Grace | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.7/4.1.9 BK | OS: | Linux (Linux 2.2) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[7 Jan 2005 23:04]
Daniel Grace
[7 Jan 2005 23:41]
MySQL Verification Team
Thank you for the bug report.
[8 Jan 2005 13:54]
Sergei Golubchik
This is expected behaviour. Indeed, you write "CONCAT() should not return binary strings unless one of its inputs is one". But when you cast a number to a string you get a binary string. Thus, CONCAT() correctly returns binary string as a result, because one of the arguments is binary string.
[9 Jan 2005 2:07]
Daniel Grace
In that case, is it a problem with MySQL 4.0.x, which works like I expected/wanted it to? The behavior changed from 4.0.x to 4.1.x. Is UPPER() not modify the case of a binary string then?
[9 Jan 2005 3:06]
Paul DuBois
See the discussion regarding UPPER() under the discussion of BINARY on this page: http://dev.mysql.com/doc/mysql/en/Cast_Functions.html
[23 Feb 2005 15:30]
Ingo Welling
I just experienced the same. It would have saved me a lot of time if you'd mentioned on the man-page that those functions don't work on binary-strings.