You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing SQL queries in the file, the parser is checking the syntax of code within comment blocks (/* */), which should be completely ignored. This is causing syntax errors for commented-out code.
Steps to Reproduce
Create a SQL file with commented blocks using /* */ syntax
Include SQL code with potential syntax issues inside the comment blocks
Execute the file against the MySQL server
Current Behavior
The MySQL parser reports syntax errors for code inside comment blocks, as seen in the error messages:
Error: 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 '/* SELECT CONCAT_WS("","Querido",nombre,apellido,"su cumpleanos fue el dia",DA' at line 5
Expected Behavior
The parser should completely ignore any code within comment blocks (/* */) and not perform syntax checking on it.
Environment
MySQL version: [8.0.41]
Client/interface: [Antares]
OS: [Ubuntu]
Additional Context
The commented code contains Spanish text with special characters, which might be related to the issue. The parser seems to be incorrectly handling the comment boundaries when certain SQL functions with special characters are present.
The text was updated successfully, but these errors were encountered:
Description
When executing SQL queries in the file, the parser is checking the syntax of code within comment blocks (
/* */
), which should be completely ignored. This is causing syntax errors for commented-out code.Steps to Reproduce
/* */
syntaxCurrent Behavior
The MySQL parser reports syntax errors for code inside comment blocks, as seen in the error messages:
Expected Behavior
The parser should completely ignore any code within comment blocks (
/* */
) and not perform syntax checking on it.Environment
Additional Context
The commented code contains Spanish text with special characters, which might be related to the issue. The parser seems to be incorrectly handling the comment boundaries when certain SQL functions with special characters are present.
The text was updated successfully, but these errors were encountered: