feat: enhance ALTER TABLE support with UNIQUE KEY and INVISIBLE index#2234
feat: enhance ALTER TABLE support with UNIQUE KEY and INVISIBLE index#2234manticore-projects merged 3 commits intoJSQLParser:masterfrom
Conversation
|
Could you please let me know when the JSqlParser 5.2 release is scheduled? Thanks! |
Unfortunately this is not on me, but I will ask @wumpz immediately and with some luck, he will get this done in May. |
|
Please fix formatting exceptions. |
|
@manticore-projects I'm currently working on a project that depends on JSqlParser, and I'm considering switching to the official release version rather than using a custom build. |
|
Thank you for your work and effort! Cheers! |
Description
This PR adds support for two MySQL DDL statements:
ALTER TABLE ADD CONSTRAINT UNIQUE KEY syntaxALTER TABLE ALTER INDEX INVISIBLE syntaxProblem Solved
Previously, JSqlParser couldn't properly parse the following SQL statements:
These are valid MySQL syntax for adding a unique constraint with a custom name and for making an index invisible to the query optimizer while keeping it maintained.
Related Issue
#2076