Skip to content
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

Support SQL non-parsing, transparent transmission mode #25180

Closed
wants to merge 48 commits into from

Conversation

galaxylqx
Copy link
Contributor

@galaxylqx galaxylqx commented Apr 15, 2023

Fixes #ISSUSE_ID.

Changes proposed in this pull request:

  • Support SQL non-parsing, transparent transmission mode

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.

galaxylqx and others added 30 commits May 23, 2022 16:38
@@ -34,4 +34,6 @@ public final class SQLParserRuleConfiguration implements GlobalRuleConfiguration
private final CacheOption parseTreeCache;

private final CacheOption sqlStatementCache;

private final String engineType;
Copy link
Member

Choose a reason for hiding this comment

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

Please add default value for engineType. It is better to add a compatible constructor.

@@ -40,7 +40,7 @@ public SQLParserRuleConfiguration buildAlteredRuleConfiguration(final SQLParserR
CacheOption sqlStatementCache =
null == sqlStatement.getSqlStatementCache() ? currentRuleConfig.getSqlStatementCache()
: createCacheOption(currentRuleConfig.getSqlStatementCache(), sqlStatement.getSqlStatementCache());
return new SQLParserRuleConfiguration(sqlCommentParseEnabled, parseTreeCache, sqlStatementCache);
return new SQLParserRuleConfiguration(sqlCommentParseEnabled, parseTreeCache, sqlStatementCache, "Standard");
Copy link
Member

Choose a reason for hiding this comment

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

Please add // TODO with reason to reminder it fix in future

/**
* Simple SQL statement.
*/
public final class SimpleSQLStatement implements SQLStatement {
public final class SimpleSQLStatement implements MySQLStatement {
Copy link
Member

Choose a reason for hiding this comment

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

How about rename it as MySQLSimpleSQLStatement and create real SimpleSQLStatement?

@github-actions github-actions bot added the stale label Jul 12, 2023
@strongduanmu
Copy link
Member

Since this pr has long time no response, I will close it now. You are welcome to submit a new PR and modify the comment issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants