That’s indeed weired… we’re using Mysql 5.0.19 and it’s the same behaviour as you describe. That also happens on 5.0.22.
If you do the same query using like instead of =,
… where u_username like 'carpi ’
it doesn’t happen. I don’t know if that is expected behaviour by ANSI standard or mysql.
Greetings
Christian
UPDATE: Guess its expected behaviour by ANSI-Standard. While looking in bugs.mysql.com I’ve found the following bug. At the end you can see a comment in the mysql source code, that says they ‘have’ to do it. )