Skip to content

fix: keep CREATE TABLE option tokens in sync with typed options - #2606

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-table-option-state
Sep 12, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-table-option-state

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Editing a typed CREATE TABLE option (for example, changing ENGINE from InnoDB to MyISAM) currently changes toString() but leaves StatementDeParser using the old value. Derive legacy option tokens from the current typed options instead of retaining a stale copy, and document the typed-token snapshot API.

Regression tests cover editing, adding and clearing typed options, plus replacement through the mutable legacy string API.

Validation: Java 17 ./gradlew check passed, including the full test suite, grammar ambiguity check and static analysis.

@manticore-projects
manticore-projects merged commit d730bf0 into JSQLParser:master Sep 12, 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