-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not ignoring comments on "use database" statements #4598
Comments
Hi @Abigail, the issue template is not a form to scrap and replace with free-writing. There are several details required to follow up on this, all of them missing, but that would be present if the template was filled. When opening an issue, please, at least make sure the points on the issue template are filled. Thanks, Javier. |
Sorry, I don't know all the details being asked. You can just ignore my bug report, or, alternatively, investigate the regexp on line 6139 of
which is problematic in three ways:
May I suggest something like
instead? |
Hi @Abigail,
What an interesting wording you used, I find myself at a crossroads, only two ways ahead! I understand this is your not so nice way of presenting your findings. Let me be clear, my request was not because there was the need of extra info for a regular contributor to find the obvious cause of the behavior, or to change a simple regex, into a sightly more complex one. A couple of The point of asking those details, as you can probably guess, is procedural. Those details are generic, and help with issue categorization, even without knowledge of the codebase, something that universal and common to all projects (even outside software). So please, just for the sake of curiosity, and maybe improving the template, which one of this highly technical details, was not possible to share?
Regards, Javier. |
Better parsing of USE queries sent with COM_QUERY #4598
I find that the following works as expected:
it will connect to the database
db
.However, if there is a newline in the comment:
it will try to switch to the database
db /* COMMENT */
, which obviously not what should happen.The other types of comment aren't ignored either:
result in attempts to switch to database
db -- COMMENT
anddb # COMMENT
.I have not seen this issue with other statements than the
use
statement, but I haven't done an exhaustive search.The text was updated successfully, but these errors were encountered: