Skip to content

fix(parser): model MySQL column type modifiers - #2537

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-column-type-modifiers
Open

fix(parser): model MySQL column type modifiers#2537
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-column-type-modifiers

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • add structured SIGNED and UNSIGNED state to ColDataType
  • model ZEROFILL consistently with and without numeric type arguments
  • keep existing CAST(... AS UNSIGNED) forms working
  • prevent column type modifiers from leaking into ColumnDefinition.columnSpecs

Testing

  • ./gradlew check
  • includes regression coverage for numeric column definitions and unsigned array casts

Fixes #2532

AI assistance

OpenAI Codex assisted with the implementation and test coverage. The changes were manually reviewed and verified against MySQL syntax.

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] 5.4-SNAPSHOT: MySQL numeric column modifiers are inconsistently modeled

1 participant