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 "Michael Bouschen (JIRA)" <ji...@apache.org> on 2006/02/25 23:38:55 UTC
[jira] Created: (JDO-320) Add negative query test for projecting a
map and collection field to tck20
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
Assigned to: Michael Bouschen
Fix For: JDO 2 final
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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (JDO-320) Add negative query test for projecting a
map and collection field to tck20
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ 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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (JDO-320) Add negative query test for projecting
a map and collection field to tck20
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-320?page=comments#action_12368649 ]
Craig Russell commented on JDO-320:
-----------------------------------
Looks good.
> 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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (JDO-320) Add negative query test for projecting a
map and collection field to tck20
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-320?page=all ]
Michael Bouschen reassigned JDO-320:
------------------------------------
Assign To: Erik Bengtson (was: Michael Bouschen)
Checked in the patch which adds two negative test queries to class org.apache.jdo.tck.query.result.ResultExpressions (see revision 383191).
Assigning the issue to Erik, becaue the current JPOX version allows projection of collection and map fields, so the negative tests fail.
> 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: Erik Bengtson
> 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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (JDO-320) Add negative query test for projecting a
map and collection field to tck20
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-320?page=all ]
Craig Russell resolved JDO-320:
-------------------------------
Resolution: Fixed
Fixed with the latest JPOX build.
> 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: Erik Bengtson
> 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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (JDO-320) Add negative query test for projecting
a map and collection field to tck20
Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-320?page=comments#action_12369420 ]
Erik Bengtson commented on JDO-320:
-----------------------------------
should be fixed in JPOX CVS now
> 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: Erik Bengtson
> 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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira