Skip to content

fix: share expression-aware table constraint rendering - #2609

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-constraint-expression-rendering
Sep 12, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/ddl-constraint-expression-rendering

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

ALTER TABLE ADD CHECK and inline functional indexes currently bypass a custom ExpressionDeParser even though their expressions are structured AST nodes. Share callback-aware index/constraint rendering between model toString() methods and TableElementDeParser, and route ALTER ADD index definitions through the same renderer.

The shared rendering retains foreign-key references, constraint attributes, index comments and storage options. Tests cover expression rewrites in CHECK, functional indexes and EXCLUDE, including programmatically constructed ALTER constraints, plus unchanged default rendering across constraint forms.

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

@manticore-projects
manticore-projects merged commit 9caed41 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