Skip to content

Support parsing MySQL stored procedure syntax - part 3 #35503

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

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

theNorthWindBlow
Copy link

@theNorthWindBlow theNorthWindBlow commented May 24, 2025

Fixes #35087.

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

@theNorthWindBlow
Copy link
Author

The conflict has been resolved. Could you review my PR?Thank you!

@strongduanmu
Copy link
Member

Hi @theNorthWindBlow, can you modify the commit info to english?

zhangyuanxing and others added 20 commits May 26, 2025 10:21
)

- Add a private final DatabaseType field initialized with "MySQL"
- Replace inline DatabaseType retrieval with the new field for better readability and performance
- Extract DatabaseType instance as a private field to improve performance
- Update SQLParserEngine initialization to use the pre-loaded DatabaseType
- Modify SQLBindEngine invocation to include DatabaseType as a parameter
* Optimize MySQL multi-statements handling

- Extract DatabaseType instance as a private field to improve performance
- Update SQLParserEngine initialization to use the pre-loaded DatabaseType
- Modify SQLBindEngine invocation to include DatabaseType as a parameter

* Add database type parameter to SQLBindEngine.bind method
- Update the SQLBindEngine.bind method call to include the databaseType parameter
- This change ensures that the database type is properly passed during SQL statement binding
* Refactor PostgreSQLComDescribeExecutor to use ShardingSphereMetaData for SQL statement binding

* Fix PostgreSQLComDescribeExecutorTest
…ently (apache#35517)

* Refactor PostgreSQLBatchedStatementsExecutor to use database type consistently

* Refactor MySQLComFieldListPacketExecutor to use database type consistently

* Refactor MySQLComFieldListPacketExecutor to use database type consistently
- Update SQLBindEngine.bind method signature to include DatabaseType parameter
- Modify test cases in various modules to pass DatabaseType to the bind method
- This change enables more precise handling of database-specific SQL statements
@theNorthWindBlow
Copy link
Author

Hi @theNorthWindBlow, can you modify the commit info to english?

I revised the commit information again, but I found that there were many more commit information of others. I'm not quite sure if this meets the requirements. Could you please take a look when you have time?

If there is any impact, I can submit a new PR.

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

Successfully merging this pull request may close these issues.

Support parsing MySQL stored procedure syntax - part 3
5 participants