Skip to content

refactor: share PostgreSQL routine argument grammar - #2613

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:refactor/postgresql-routine-arguments
Sep 12, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:refactor/postgresql-routine-arguments

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Privilege targets and extension members build the same RoutineReference.Argument AST through duplicated grammar. Share mode/name/type parsing while retaining the existing parser entry points and keeping ORDER BY argument boundaries restricted to aggregate-signature contexts.

Tests compare argument ASTs across GRANT and ALTER EXTENSION for modes, qualified and array types, and quoted argument names. They also cover ordered-set aggregates and rejection of aggregate-only syntax in FUNCTION/GRANT contexts.

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

@manticore-projects
manticore-projects merged commit 74d1611 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