You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/03/21 01:06:58 UTC

[jira] Created: (JDO-344) Add new tests for query projection of variables where the field is mapped to one-to-many and many-to-many relationships

Add new tests for query projection of variables where the field is mapped to one-to-many and many-to-many relationships
-----------------------------------------------------------------------------------------------------------------------

         Key: JDO-344
         URL: http://issues.apache.org/jira/browse/JDO-344
     Project: JDO
        Type: Test
  Components: tck20  
    Versions: JDO 2 rc1    
    Reporter: Craig Russell
    Priority: Minor


We encountered a bug in Derby with JDO-310 where the variable field was mapped to many-to-many relationships. We should add new tests for the next release cycle to test:

SELECT e FROM Department WHERE deptid==2 & employees.contains(e) VARIABLES Employee e

SELECT distinct e FROM Department WHERE deptid==2 & employees.contains(e) VARIABLES Employee e

SELECT p FROM Employee WHERE projects.contains(p) & p.name == 'orange' VARIABLES Project p

SELECT distinct p FROM Employee WHERE projects.contains(p) & p.name == 'orange' VARIABLES Project p


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JDO-344) Add new tests for query projection of variables where the field is mapped to one-to-many and many-to-many relationships

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-344?page=all ]

Craig Russell resolved JDO-344.
-------------------------------

    Fix Version/s: JDO 2 maintenance release 1
       Resolution: Fixed
         Assignee: Craig Russell

 svn commit src/java/org/apache/jdo/tck/query/result/
Sending        src/java/org/apache/jdo/tck/query/result/VariableInResult.java
Transmitting file data .
Committed revision 463364.


> Add new tests for query projection of variables where the field is mapped to one-to-many and many-to-many relationships
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JDO-344
>                 URL: http://issues.apache.org/jira/browse/JDO-344
>             Project: JDO
>          Issue Type: Test
>          Components: tck20
>    Affects Versions: JDO 2 rc1
>            Reporter: Craig Russell
>         Assigned To: Craig Russell
>            Priority: Minor
>             Fix For: JDO 2 maintenance release 1
>
>
> We encountered a bug in Derby with JDO-310 where the variable field was mapped to many-to-many relationships. We should add new tests for the next release cycle to test:
> SELECT e FROM Department WHERE deptid==2 & employees.contains(e) VARIABLES Employee e
> SELECT distinct e FROM Department WHERE deptid==2 & employees.contains(e) VARIABLES Employee e
> SELECT p FROM Employee WHERE projects.contains(p) & p.name == 'orange' VARIABLES Project p
> SELECT distinct p FROM Employee WHERE projects.contains(p) & p.name == 'orange' VARIABLES Project p

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira