Skip to content

Validate every UPDATE assignment through shared UpdateSet traversal - #2623

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/validate-all-update-sets
Sep 13, 2026
Merged

Validate every UPDATE assignment through shared UpdateSet traversal#2623
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/validate-all-update-sets

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

UPDATE t SET a = 1, b = ? currently passes validation even when JDBC parameters are forbidden. The validator reads deprecated accessors that expose only the first assignment, so equivalent expressions are checked differently depending on their position.

Validate the complete UpdateSet list and share assignment traversal with MERGE. Columns and values in every assignment are visited; direct SELECT values use the select validator. This also removes the obsolete first-assignment/select compatibility branch without changing the public UPDATE AST API.

Validation: full Java 17 Gradle check passes, including tests, formatting, Checkstyle, PMD, SpotBugs, coverage, and the grammar ambiguity gate. Regression tests cover first/middle/last assignments, tuples, subqueries, independent feature errors across assignments, and the existing MERGE path.

@manticore-projects
manticore-projects merged commit c314df2 into JSQLParser:master Sep 13, 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