Issue Details (XML | Word | Printable)

Key: JDO-344
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

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

Created: 21/Mar/06 08:05 AM   Updated: 12/Oct/06 06:20 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 rc1
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

Resolution Date: 12/Oct/06 06:20 PM


 Description  « Hide
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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #463364 Thu Oct 12 18:19:43 UTC 2006 clr JDO-344 Add new tests for projection of variables and fields of variables
where the projected variables are mapped to one-to-many and many-to-many
relationships.
Files Changed
MODIFY /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/VariableInResult.java