Issue Details (XML | Word | Printable)

Key: JDO-221
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

Test case AggregateResult misses DISTINCT queries and navigational expressions in aggrgate queries.

Created: 24/Nov/05 08:00 PM   Updated: 29/Nov/05 08:05 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-221.patch 2005-11-25 08:00 PM Michael Watzek 11 kB
File Licensed for inclusion in ASF works JDO-221.patch2 2005-11-28 10:26 PM Michael Watzek 10 kB

Resolution Date: 29/Nov/05 08:05 PM


 Description  « Hide
Test case AggregateResult misses DISTINCT queries and navigational expressions in aggregate queries for all aggregates, e.g

- SELECT COUNT(DISTINCT manager) FROM Employee
- SELECT COUNT(manager.id) FROM Employee


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 25/Nov/05 08:00 PM
The attached patch fixes this issue.

Michael Bouschen added a comment - 28/Nov/05 05:47 PM
JDOQL does not support DISTINCT as part of the argument of MIN and MAX, so we need to skip these queries. Other than that it is ready to be checked in.

Michael Watzek added a comment - 28/Nov/05 10:26 PM
The second patch implements the comments above.

Michael Bouschen added a comment - 29/Nov/05 07:34 PM
Looks good!

Michael Watzek added a comment - 29/Nov/05 08:05 PM
The second patch has been checked in (Revision 349707).