Apache JDO Project - [jira] Commented: (JDO-529) ChangeQuery - DISTINCT is expected even

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2007 > [jira] Commented: (JDO-529) ChangeQuery - DISTINCT is expected even





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] Commented: (JDO-529) ChangeQuery - DISTINCT is expected even
Ilan Kirsh (JIRA)

2007-09-18, 1:11 pm


[ https://issues.apache.org/jira/brow...action_12528462 ]

Ilan Kirsh commented on JDO-529:
--------------------------------

I still cannot pass this test, now because of the DISTINCT / ORDER BY combination.

DISTINCT is eventually a specific case of GROUP BY, and it should restrict the valid ORDER BY expressions, similarly to the GROUP BY description.

For instance, if two persons have the same first name / last name, which of their IDs should we use to sort the results?

> ChangeQuery - DISTINCT is expected even though it is not specified
> ------------------------------------------------------------------
>
> Key: JDO-529
> URL: https://issues.apache.org/jira/browse/JDO-529
> Project: JDO
> Issue Type: Test
> Components: tck2
> Reporter: Ilan Kirsh
> Attachments: jdo-529.patch
>
>
> Test org.apache.jdo.tck.query.api.ChangeQuery expects 3 result objects:
> List expectedResult = Arrays.asList(new Object[] {
> new FullName("emp1First", "emp1Last"),
> new FullName("emp2First", "emp2Last"),
> new FullName("emp5First", "emp5Last")});
> But actually there should be 4 result objects:
> List expectedResult = Arrays.asList(new Object[] {
> new FullName("emp1First", "emp1Last"),
> new FullName("emp2First", "emp2Last"),
> new FullName("emp2First", "emp2Last"),
> new FullName("emp5First", "emp5Last")});
> because the result is not specified as DISTINCT.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com