Bug 1387262

Summary: [GSS] (6.4.z) HHH-11182 - HQL subquery with constraint property in superclass does not join superclass table
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Stephen Fikes <sfikes>
Component: HibernateAssignee: Gail Badner <gbadner>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.11CC: bmaxwell, gbadner, jbilek, jtruhlar, msimka, pjurak, ppalaga, smarlow
Target Milestone: CR1   
Target Release: EAP 6.4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 13:14:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1373627, 1375585    

Description Stephen Fikes 2016-10-20 13:33:06 UTC
Description of problem:

https://hibernate.atlassian.net/browse/HHH-11182

Incorrect SQL generated when an EXISTS subquery references superquery paths


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Gail Badner 2016-10-21 22:12:17 UTC
Upstream commit: https://github.com/hibernate/hibernate-orm/commit/f2447bce33f5d5323eb369c11352c5c344bc510d

Internal commit: http://git.app.eng.bos.redhat.com/git/hibernate/hibernate-core.git/commit/?id=f2447bce33f5d5323eb369c11352c5c344bc510d

Note: commit comment says "Add test for issue". This is actually a squashed commit that includes both the test and the fix.

Comment 2 Jiří Bílek 2016-11-04 09:01:13 UTC
Verified with EAP 6.4.12.CP.CR1

Comment 3 Petr Penicka 2017-01-17 13:14:29 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 4 Petr Penicka 2017-01-17 13:15:00 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.