Skip to content

fix(parser): preserve unique index comments in ALTER TABLE - #2533

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-alter-unique-index-comment-2503
Open

fix(parser): preserve unique index comments in ALTER TABLE#2533
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-alter-unique-index-comment-2503

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • build the structured Index node for MySQL ALTER TABLE ... ADD UNIQUE INDEX
  • retain key-part ordering, USING, and COMMENT clauses during parsing and deparsing
  • keep the existing unique-key compatibility fields populated

Testing

  • ./gradlew check

Fixes #2503

AI assistance

OpenAI Codex assisted with the implementation and test coverage. The changes were manually reviewed and verified.

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.

[BUG] JSQLParser Version 5.3 : MySQL : Error occurred while parsing the statement for creating the index.

1 participant