| Bug #589 | /* */ comment does not work if -- is met inside | ||
|---|---|---|---|
| Submitted: | 5 Jun 2003 2:30 | Modified: | 21 Jun 2003 8:46 |
| Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.0 | OS: | Any (all) |
| Assigned to: | CPU Architecture: | Any | |
[21 Jun 2003 8:46]
Alexey Botchkov
I can't repeat it - probably fixed
[21 Jun 2003 9:12]
Paul DuBois
It is fixed in 4.1, but it is easily repeatable in 4.0:
% mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.0.14-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select /* -- */ 1;
->
This happens for me both on Mac OS X and on Red Hat.

Description: if "--" is met inside of /* */ comment parser does not handle it. How to repeat: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 3.23.57 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select /* -- */ 1; ->