Skip to content

feat: structure PostgreSQL ARRAY and column storage options - #2704

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-table-ddl-options
Sep 25, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-table-ddl-options

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

PostgreSQL ARRAY type spelling and column STORAGE EXTENDED were rejected, while accepted storage/compression clauses remained raw column tokens. Qualified types could also flatten array suffixes into the type name.

Keep ARRAY dimensions on ColDataType, retain structured suffixes for qualified names, and model STORAGE/COMPRESSION as mutable ColumnOption kinds shared by CREATE TABLE and ALTER TABLE ADD COLUMN. Preserve bracket arrays, MySQL column storage locations and the established MySQL CAST(... AS ... ARRAY) type-name API.

Validation: full Gradle check and grammar ambiguity gate; dimensions, qualified types, option removal/replacement, both printers and reparsing. All 20 audited ARRAY/storage inputs execute successfully and retain column catalog metadata on PostgreSQL 18.6.

Signed-off-by: minleejae <mmj9808@gmail.com>
@manticore-projects
manticore-projects merged commit 8f6b3f2 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