You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "David Wisneski (JIRA)" <ji...@apache.org> on 2007/02/01 02:29:05 UTC
[jira] Closed: (OPENJPA-25) Incorrect SQL generated for queries
involving more than one AbstractSchemaNames, generated SQL FROM clause is
missing 'Table alias'
[ https://issues.apache.org/jira/browse/OPENJPA-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Wisneski closed OPENJPA-25.
---------------------------------
Resolution: Fixed
not a problem anymore
> Incorrect SQL generated for queries involving more than one AbstractSchemaNames, generated SQL FROM clause is missing 'Table alias'
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-25
> URL: https://issues.apache.org/jira/browse/OPENJPA-25
> Project: OpenJPA
> Issue Type: Bug
> Components: query
> Reporter: Catalina Wei
>
> select e, d from EmpBean e, DeptBean d generates following SQL where t2 is undefined:
> SELECT t1.empid, t2.deptno FROM EmpBean t0 JOIN EmpBean t1 ON (1 = 1)
> 'DeptBean t2' is missing in the FROM clause.
> Similar problem occurs to the following query:
> select d from EmpBean e left join e.dept d, ProjectBean p where e.salary = p.budget ==> incorrect SQL (t3 is undefined):
> SELECT t1.deptno, t1.budget, t1.mgr_empid, t1.name, t1.reportsTo_deptno FROM EmpBean t0 LEFT OUTER JOIN DeptBean t1 ON t0.dept_deptno = t1.deptno JOIN EmpBean t2 ON (1 = 1) WHERE (t2.salary = t3.budget)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.