Bug #68676 | Escaping backslash in identifier name | ||
---|---|---|---|
Submitted: | 14 Mar 2013 21:25 | Modified: | 19 Mar 2013 20:00 |
Reporter: | Kamil Dziedzic | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | 5.5.30, 5.0.97, 5.1.70, 5.5.32, 5.6.12, 5.7.2 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[14 Mar 2013 21:25]
Kamil Dziedzic
[19 Mar 2013 20:00]
Sveta Smirnova
Thank you for the report. Verified as described.
[2 Aug 2013 12:20]
Kamil Dziedzic
Any chance for a response why this happens?
[13 Apr 2015 16:28]
Alex Balhatchet
FYI I came across this bug recently and found an interesting mysql client trick to reference the oddly named table, that may itself be a bug. -------------------- mysql> show tables; Empty set (0.00 sec) mysql> CREATE TABLE `\` ( `foo` int(10) ) ENGINE=InnoDB CHARSET=utf8; `; Query OK, 0 rows affected (0.00 sec) ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`' at line 1 mysql> show tables; +---------------+ | Tables_in_foo | +---------------+ | \ | +---------------+ 1 row in set (0.00 sec) mysql> DROP TABLE `\`; `; Query OK, 0 rows affected (0.00 sec) ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`' at line 1 mysql> show tables; Empty set (0.00 sec) -------------------- Pretty sure that that shouldn't work. Should I open a new bug report specifically for this, or is it ok to lump it in here with #68676?
[27 Jun 2017 1:31]
Jeromie Kirchoff
I know this is old but it also causes issues with calling procedures. mysql -h your.hostname.com -e "CALL your_table_schema.\`your_procedure_name\`\(\);" Returns on the command line. ERROR at line 1: Unknown command '\('. current mysql version 5.6.34-log Any update on this being fixed or do I just need to update to the newest mysql version? Cheers, JayRizzo
[10 Aug 2021 16:42]
mack Truck
Bshite