Thorsten Goetzke (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6422e66...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOTk1ZTg3ZjA5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16424?atlOrigin=eyJpIjoiOTk1ZT...
) HHH-16424 (
https://hibernate.atlassian.net/browse/HHH-16424?atlOrigin=eyJpIjoiOTk1ZT...
) dot id subquery (
https://hibernate.atlassian.net/browse/HHH-16424?atlOrigin=eyJpIjoiOTk1ZT...
)
Issue Type: Bug Affects Versions: 6.2.0.CR4 Assignee: Unassigned Attachments: FunTest.java
Components: query-hql Created: 03/Apr/2023 05:42 AM Priority: Major Reporter: Thorsten
Goetzke (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6422e66...
)
Hello
I was trying to create a reproducer for
https://hibernate.atlassian.net/browse/HHH-15661
and it seems to be connected to the way that sometimes hibernates allows you to use “.id”
instead of the real Entity. I remember that using a syntax like “where x.id (
http://x.id
) in” instead of “where x in (
http://x.in ) ” at some point in hibernate long ago helped
you to work around some hibernate bugs, now it seems to trigger some hard to debug ones.
Expected: query 0,1,2 should work or break the same. Preferably work because at some point
they did..
Actual query 0 and 1 pass the interpreter but fail at execution.
Adding an extra “()” will break the query at the intepreter, with a least an
understandable message.
(
https://hibernate.atlassian.net/browse/HHH-16424#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16424#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#100221- sha1:d541bce )