Alex Nistico (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2VjMTNhM2Zk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16951?atlOrigin=eyJpIjoiM2VjMT...
) HHH-16951 (
https://hibernate.atlassian.net/browse/HHH-16951?atlOrigin=eyJpIjoiM2VjMT...
) HQL no longer deals with empty collections as bind values for nullness predicates (
https://hibernate.atlassian.net/browse/HHH-16951?atlOrigin=eyJpIjoiM2VjMT...
)
Issue Type: Bug Affects Versions: 6.2.6 Assignee: Unassigned Components: query-hql
Created: 18/Jul/2023 00:02 AM Priority: Major Reporter: Alex Nistico (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Named parameters that accepts collections and are used in nullness predicates, fail to
bind the value breaking the generated SQL query.
For example
from MarketValue where :codes is null
Will be translated to
select m1_0.id,m1_0.code from market_value m1_0 where
If you bind an empty collectino to :codes
The expected translation would be:
select m1_0.id,m1_0.code from market_value m1_0 where ? is null
(
https://hibernate.atlassian.net/browse/HHH-16951#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16951#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100232- sha1:4a3b42c )