Skip to content

Fix can not accept sql type 'TerminalNodeImpl' when parsing /*! MySQL-specific code */#38032

Open
ClaireLytt wants to merge 2 commits intoapache:masterfrom
ClaireLytt:terminal1
Open

Fix can not accept sql type 'TerminalNodeImpl' when parsing /*! MySQL-specific code */#38032
ClaireLytt wants to merge 2 commits intoapache:masterfrom
ClaireLytt:terminal1

Conversation

@ClaireLytt
Copy link
Contributor

Fixes #18701.

Changes proposed in this pull request:


Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

<sql-case id="set_persist_system_variable_doris" value="SET PERSIST max_connections = 200" db-types="Doris" />
<sql-case id="set_persist_only_system_variable_doris" value="SET PERSIST_ONLY time_zone = '+08:00'" db-types="Doris" />
<sql-case id="set_mysql_version_comment" value="/*! SET GLOBAL max_connections=123 */" db-types="MySQL" />
<sql-case id="set_mysql_version_comment_with_version" value="/*!80029 SET GLOBAL max_connections=456 */" db-types="MySQL" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add parse comment into SQLStatement comments? And add assert for comments field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not find visitor rule: TerminalNodeImpl when parsing /*! MySQL-specific code */

2 participants