Skip to content

fix: allow STATEMENT as an unquoted identifier - #2706

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/statement-identifier-keyword
Sep 25, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/statement-identifier-keyword

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

PostgreSQL and MySQL accept statement as an unquoted table or column name, but JSqlParser classified STATEMENT as reserved and rejected these definitions.

Move STATEMENT into the existing non-reserved keyword production so identifier parsing and lookahead helpers share the same classification. Preserve its keyword role in trigger orientation clauses.

Validation: full Gradle check and grammar ambiguity gate; CREATE/ALTER/SELECT identifier tests and a PostgreSQL FOR EACH STATEMENT trigger control. All four audited inputs pass their applicable PostgreSQL 18.6 and MySQL 9.7.2/26.7.0 execution comparisons (seven profile/input combinations).

Signed-off-by: minleejae <mmj9808@gmail.com>
@manticore-projects
manticore-projects merged commit ef7cb13 into JSQLParser:master Sep 25, 2026
10 checks passed
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