Skip to content

fix: align CREATE and ALTER index option boundaries - #2702

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-index-option-boundaries
Sep 25, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-index-option-boundaries

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

ALTER TABLE ADD key options took a different path from CREATE TABLE: PostgreSQL USING INDEX TABLESPACE was consumed as an index access method, and MySQL SECONDARY_ENGINE_ATTRIBUTE was not recognized.

Keep the PostgreSQL constraint-options boundary intact and share MySQL scalar engine-attribute parsing with table options. This also gives table ENGINE_ATTRIBUTE/SECONDARY_ENGINE_ATTRIBUTE clauses the existing mutable TableOption representation, while retaining the legacy index-option token API.

Validation: full Gradle check and grammar ambiguity gate; tablespace mutation, MySQL option boundaries and table-attribute mutation tests. All five audited PostgreSQL TABLESPACE cases and both MySQL index-attribute variants pass execution/catalog comparison on PostgreSQL 18.6 and MySQL 9.7.2/26.7.0 respectively.

Signed-off-by: minleejae <mmj9808@gmail.com>
@manticore-projects
manticore-projects merged commit 34033a7 into JSQLParser:master Sep 25, 2026
10 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.

2 participants