Apache JDO Project - [jira] Updated: (JDO-320) Add negative query test for projecting a

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > March 2006 > [jira] Updated: (JDO-320) Add negative query test for projecting a





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Updated: (JDO-320) Add negative query test for projecting a
Michael Bouschen (JIRA)

2006-03-03, 5:48 pm

[ http://issues.apache.org/jira/browse/JDO-320?page=all ]

Michael Bouschen updated JDO-320:
---------------------------------

Attachment: JDO-320.patch

Attached you find a patch JDO-320.patch for review. It adds the two negative test queries to the ResultExpressions class.

Please note, that the current JPOX version currently accepts JDOQL queries returning a collection field, so the negative test fails.

> Add negative query test for projecting a map and collection field to tck20
> --------------------------------------------------------------------------
>
> Key: JDO-320
> URL: http://issues.apache.org/jira/browse/JDO-320
> Project: JDO
> Type: Test
> Components: tck20
> Versions: JDO 2 rc1
> Reporter: Michael Bouschen
> Assignee: Michael Bouschen
> Fix For: JDO 2 final
> Attachments: JDO-320.patch
>
> The latest version of the JDO spec disallows JDOQL queries projecting a collection or map field, e.g.
> SELECT p.phoneNumbers FROM org.apache.jdo.tck.pc.company.Person p
> SELECT d.employees FROM org.apache.jdo.tck.pc.company.Department d
> We should add a test method running the above queries which should result in a JDOException.


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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com