Skip to content

Support structured MySQL table definitions - #2541

Open
minleejae wants to merge 4 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-table-definitions
Open

Support structured MySQL table definitions#2541
minleejae wants to merge 4 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-table-definitions

Conversation

@minleejae

@minleejae minleejae commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add ordered, typed AST models for table elements, table options, column options, references, and MySQL type modifiers
  • share index, constraint, and reference parsing between CREATE TABLE and ALTER TABLE
  • support the remaining valid MySQL table-definition forms while preserving legacy accessors and deparsing compatibility
  • add minimized MySQL regression tests with AST usability and round-trip assertions

Validation

  • ./gradlew test spotlessCheck checkstyleMain checkstyleTest
  • 5,141 tests passed (25 skipped)
  • MySQL 8.4.11 execution corpus: all 36 targeted CREATE TABLE failures now parse into typed CreateTable ASTs
  • 516/516 typed statements deparse and reparse successfully

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.

1 participant