Bug #72297 | Column name ìd` causes problems in SELECT when quoted | ||
---|---|---|---|
Submitted: | 9 Apr 2014 20:25 | Modified: | 9 Apr 2014 20:48 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 5.1.73 | OS: | Windows (7/64) |
Assigned to: | CPU Architecture: | Any |
[9 Apr 2014 20:25]
Peter Laursen
[9 Apr 2014 20:30]
Peter Laursen
I should add that I am using a utf8 client (SQLyog) that specifies utf8 as the character set for the connection in mysql_options(). I believe it would be reproducible in Workbench as well?
[9 Apr 2014 20:36]
Peter Laursen
In command line client in ANSI mode it works as expected. mysql> select `id` from `passwords`; Empty set (0.00 sec) mysql> show variables like 'char%'; +--------------------------+---------------------------------------------------- -----+ | Variable_name | Value | +--------------------------+---------------------------------------------------- -----+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.1\share\chars ets\ | +--------------------------+---------------------------------------------------- -----+ 8 rows in set (0.00 sec) mysql>
[9 Apr 2014 20:44]
Peter Laursen
Hmmm .. same with latest 5.0, 5.5 and 5.6 too! Should I go to sleep? I cannot see what I am missing (if I am).
[9 Apr 2014 20:48]
Peter Laursen
Closing as not a bug. Retyping the statememnt solved the problem. Some non-printable character could have been in the Scintilla editor control/buffer.