| Summary: | Correlated ReportQuery using wrong alias in start with clause | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Will Butler <will> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Will Butler
What happens if you change your code as follows: ExpressionBuilder parentBuilder = new ExpressionBuilder(DomainObject.class); ExpressionBuilder childBuilder = new ExpressionBuilder(DomainObject.class); (In reply to comment #1) > What happens if you change your code as follows: > > ExpressionBuilder parentBuilder = new ExpressionBuilder(DomainObject.class); > ExpressionBuilder childBuilder = new ExpressionBuilder(DomainObject.class); Tried this, the end result is the same. Line 1277 in SQLSelectStatement seems to be the culprit: startWithExpression = getStartWithExpression().rebuildOn(builder); When normalize is called for the subquery, the entire start with expression gets rebuilt on the childBuilder clone. This includes the expressions that were built using the parentBuilder. Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |