Issue Details (XML | Word | Printable)

Key: JDO-177
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michael Watzek
Votes: 0
Watchers: 0
Operations

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

JPOX ignores JDOHelper.getObjectId in queries.

Created: 07/Oct/05 12:59 AM   Updated: 28/Nov/05 11:42 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 28/Nov/05 11:42 PM


 Description  « Hide
JPOX ignores JDOHelper.getObjectId in queries. This bug may be reproduced applying patch JDO-159. The following query returns instances of FullTimeEmployee instead of objectid instances:

SELECT JDOHelper.getObjectId(this) FROM org.apache.jdo.tck.pc.company.Person


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 17/Oct/05 05:45 PM
Component set to tck20.

Andy Jefferson added a comment - 25/Nov/05 05:36 PM
To be explicit, this only relates to queries where JDOHelper.getObjectId(this) is in the result clause. When it is in the filter clause all works fine.

Andy Jefferson added a comment - 25/Nov/05 09:45 PM
JPOX CVS has been updated to support JDOHelper.getObjectId in the result clause. It now shows up an error in the test. The second query is trying to use a filter of "personid = 1", where it should be "personid == 1"

Michael Watzek added a comment - 28/Nov/05 11:42 PM
The fix has been checked in.