Skip to content

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

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-alter-unique-index-comment-2503
Sep 4, 2026
Merged

fix(parser): preserve unique index comments in ALTER TABLE#2533
manticore-projects merged 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.

@manticore-projects
manticore-projects merged commit 2243e2b into JSQLParser:master Sep 4, 2026
7 checks passed
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank you!

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.

2 participants