Bug #20432 mysql client interprets commands in comments
Submitted: 13 Jun 2006 18:38 Modified: 28 Jul 2006 22:08
Reporter: Sergei Golubchik
Status: Closed
Category:Client Severity:S3 (Non-critical)
Version:4.1 OS:
Assigned to: Tatjana A. Nuernberg Target Version:

[13 Jun 2006 18:38] Sergei Golubchik
Description:
in 4.1 mysql command client interprets named commands even in comments, in 4.0 it does
not.

How to repeat:
% ( echo '/*' ; echo 'use' ; echo '*/' ) | mysql-4.0/client/mysql
% ( echo '/*' ; echo 'use' ; echo '*/' ) | mysql-4.1/client/mysql
ERROR at line 2: USE must be followed by a database name

same with other commands, e.g. 'status'
[14 Jun 2006 13:17] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/7624
[13 Jul 2006 9:04] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/9108
[13 Jul 2006 14:19] Tatjana A. Nuernberg
pushed to 4.1.21-maint
[25 Jul 2006 6:35] Tatjana A. Nuernberg
in 4.1.21
[28 Jul 2006 22:08] Paul DuBois
Noted in 4.1.21 changelog.

The mysql client did not ignore client-specific commands (such as use
or help) that occurred as the first word on a line within
multiple-line /* ... */ comments.