Skip to content

Align AOT metadata query rendering for IgnoreCase#2246

Closed
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
wonderfulrosemari:gh-2239-aot-query-metadata-align
Closed

Align AOT metadata query rendering for IgnoreCase#2246
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
wonderfulrosemari:gh-2239-aot-query-metadata-align

Conversation

@wonderfulrosemari
Copy link
Contributor

Closes gh-2239

Align AOT-derived query metadata with runtime SQL rendering for IgnoreCase predicates.

Previously, AOT metadata rendered derived IgnoreCase queries as:
"column" = UPPER(:param)

while runtime query execution renders:
UPPER("column") = UPPER(:param)

Changes include:

  • preserving string SQL type hints in AOT placeholder metadata for captured parameters
  • keeping provided JdbcValue SQL type hints in QueryMapper when mapping criteria values
  • adding regression coverage in JdbcRepositoryMetadataIntegrationTests for findByFirstnameIgnoreCase
  • adding findByFirstnameIgnoreCase to the AOT test repository interface

Signed-off-by: wonderfulrosemari <whwlsgur1419@naver.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 3, 2026
@mp911de mp911de added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 5, 2026
@mp911de
Copy link
Member

mp911de commented Mar 5, 2026

Thanks for the suggestion. We used a slightly different fix via c98bb62

@mp911de mp911de closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: superseded An issue that has been superseded by another

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AOT query metadata does not match actual query

3 participants