Hi Isomorphic,
please see the testcase (using v10.0p_2015-10-08/PowerEdition Deployment) from this thread (attached files in the end, plus addition of employee2 to the DataSourceLoader-string in BuiltInDS.html).
Remove the relatedTableAlias="bugHereAsWell" from the reportsTo field in employees.ds.xml.
Then just load the sample. The 1st generated fetch returns no data if run on HSQLDB and an error in Oracle. The generated statement is:
The (obvious) error message is ORA-00918: column ambiguously defined.
When using Ansi-Joins, the generated statement is:
This might be loosely related to the bug in this thread (this is a minor one for me).
Best regards
Blama
please see the testcase (using v10.0p_2015-10-08/PowerEdition Deployment) from this thread (attached files in the end, plus addition of employee2 to the DataSourceLoader-string in BuiltInDS.html).
Remove the relatedTableAlias="bugHereAsWell" from the reportsTo field in employees.ds.xml.
Then just load the sample. The 1st generated fetch returns no data if run on HSQLDB and an error in Oracle. The generated statement is:
Code:
SELECT COUNT(*) FROM employeeTable, employeeTable WHERE employeeTable.ReportsTo = employeeTable.EmployeeId
When using Ansi-Joins, the generated statement is:
Code:
SELECT COUNT(*) FROM employeeTable JOIN employeeTable ON employeeTable.ReportsTo = employeeTable.EmployeeId
Best regards
Blama
Comment