Skip to content

Conversation

@hgwr
Copy link
Contributor

@hgwr hgwr commented Jan 23, 2026

Fix binding for EclipseLink when a derived query collapses to ... IS NULL AND ... = ?2 and the provider reports only position 2. We now bind positional parameters based on the reported positions (falling back to the previous size heuristic when no positional metadata is available).

This prevents Query argument 2 not found seen in #4167. Reproducer and logs: #4167 (comment).

Tests: ./mvnw -pl spring-data-jpa -Dtest=NamedOrIndexedQueryParameterSetterUnitTests test (local eclipselink-test fork still fails due to the existing EclipseLink javaagent ASM error).

Signed-off-by: Shigeru Hagiwara <shigeru.hagiwara@ofaas.jp>
@hgwr hgwr force-pushed the fix-el-positional-underreport branch from cfad1d4 to 238d679 Compare January 23, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants