Igor Koropov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f75beb...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiODFkZWU4Njcz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16118?atlOrigin=eyJpIjoiODFkZW...
) HHH-16118 (
https://hibernate.atlassian.net/browse/HHH-16118?atlOrigin=eyJpIjoiODFkZW...
) Wrong translation of a DELETE JPQL Statement (
https://hibernate.atlassian.net/browse/HHH-16118?atlOrigin=eyJpIjoiODFkZW...
)
Issue Type: Bug Affects Versions: 6.1.6 Assignee: Unassigned Created: 30/Jan/2023 08:55 AM
Environment: Database H2 Priority: Major Reporter: Igor Koropov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f75beb...
)
Statement: DELETE Flow AS f WHERE f.flowGroups IS EMPTY
is translated to: *delete from flow_attribute_value where not exists(select 1 from
flow_group_flows f3_0 where f2_0.id=f3_0.flows_id)*
The error emerges: f2_0.id is not defined, because f2_0 is unknown. It should be
translated to: *delete from flow_attribute_value where not exists(select 1 from
flow_group_flows f3_0 where id=f3_0.flows_id)*
(
https://hibernate.atlassian.net/browse/HHH-16118#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16118#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#100214- sha1:d3cc1a2 )