You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/10 06:37:54 UTC

[GitHub] [shardingsphere] TeslaCN opened a new issue, #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */

TeslaCN opened a new issue, #18701:
URL: https://github.com/apache/shardingsphere/issues/18701

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master - 280415ac7c89e5bc4f9829ef1b96a31e917910c6
   
   ### Expected behavior
   
   SQL in the block could be parsed into AST.
   
   ```sql
   /*! set global max_connections=123 */;
   /*!80029 set global max_connections=456 */;
   ```
   
   Refer to https://dev.mysql.com/doc/refman/5.7/en/comments.html
   
   ### Actual behavior
   
   Unsupported.
   
   ```
   ERROR 1997 (C1997): Runtime exception: [Can not find visitor rule: `TerminalNodeImpl`]
   ```
   
   ![image](https://user-images.githubusercontent.com/20503072/176415842-dc0b2be5-7f58-4f07-a0f2-46412e57d606.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #18701:
URL: https://github.com/apache/shardingsphere/issues/18701#issuecomment-1178490306

   @TeslaCN Thank you for your feedback, I will investigate this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #18701:
URL: https://github.com/apache/shardingsphere/issues/18701#issuecomment-1178698982

   Currently, SQL comments are added to the hidden channel during the lexical parsing phase, not the AST. That is, the SQL we parsed is an empty string. 
   
   Considering that there are many extended syntaxes supported in MySQL comment, we will consider supporting parsing of these SQLs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] github-actions[bot] closed issue #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */
URL: https://github.com/apache/shardingsphere/issues/18701


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] github-actions[bot] commented on issue #18701: Can not find visitor rule: `TerminalNodeImpl` when parsing /*! MySQL-specific code */

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18701:
URL: https://github.com/apache/shardingsphere/issues/18701#issuecomment-1272349536

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org