Skip to content

Refine StringQuery parameter index allocation #3758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mp911de opened this issue Jan 29, 2025 · 0 comments
Closed

Refine StringQuery parameter index allocation #3758

mp911de opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Jan 29, 2025

select u from User u where foo = ?#{bar} and bar = ?2 gets rewritten to select u from User u where foo = ?3 and bar = ?2 although we could use free labels and rewrite it to select u from User u where foo = ?1 and bar = ?2

@mp911de mp911de self-assigned this Jan 29, 2025
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 29, 2025
@mp911de mp911de changed the title StringQuery Expression parameter detection used the highest (and not available) parameter indices Refine StringQuery parameter index allocation Jan 29, 2025
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 29, 2025
@mp911de mp911de added this to the 3.5 M1 (2025.0.0) milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants