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

Fix issue 2106: Add parsing functionality for MySQL ALTER Table option statements #2115

Merged
merged 5 commits into from
Nov 24, 2024

Conversation

minleejae
Copy link
Contributor

Summary
This PR addresses the issue with #2114 to parse specific MySQL-specific features in ALTER TABLE statements, such as ENCRYPTION, AUTO_INCREMENT, and ENGINE options. Previously, these clauses were categorized as UNSPECIFIC.

Changes
Modified the parser to correctly identify and handle the ENCRYPTION option in ALTER TABLE statements.
Added support for parsing the AUTO_INCREMENT option in ALTER TABLE statements.
Implemented parsing functionality for the ENGINE option in ALTER TABLE statements.
These options are now categorized under SET_TABLE_OPTION instead of UNSPECIFIC.

References
MySQL Documentation: ALTER TABLE Partition Operations

@minleejae
Copy link
Contributor Author

I think I made a mistake during the merge stage. I will fix it soon.

@manticore-projects
Copy link
Contributor

Thank you very much @minleejae

@manticore-projects manticore-projects merged commit fee2f90 into JSQLParser:master Nov 24, 2024
2 of 3 checks passed
@minleejae minleejae deleted the feature/alter branch November 26, 2024 05:13
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.

3 participants