| Andy Jefferson (JIRA) 2007-09-20, 7:11 am |
|
[ https://issues.apache.org/jira/brow...m.atlassian.ji=
ra.plugin.system.issuetabpanels:comment-tabpanel#action_12529067 ]=20
Andy Jefferson commented on JDO-529:
------------------------------------
This query now has the ordering constraint of=20
firstname, lastname ASCENDING
If I read the spec 14.6.6 it says=20
"The ordering statement is a String containing one or more ordering declara=
tions separated by commas. Each ordering declaration is a Java expression o=
f an orderable type:
=E2=80=A2 primitives (boolean is non-portable);
=E2=80=A2 wrappers (Boolean is non-portable);
=E2=80=A2 BigDecimal;
=E2=80=A2 BigInteger;
=E2=80=A2 String;
=E2=80=A2 Date
followed by one of the following words: "ascending", "descending","asc", or=
"desc"."
So shouldn't the ordering constraint should be=20
firstname ASCENDING, lastname ASCENDING
???
"firstname ASCENDING" is an "ordering declaration" using spec verbage, as i=
s "lastname ASCENDING". Unless we're having inbuilt default of ASCENDING, b=
ut I didn't read that from the spec.
> 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
> Assignee: Craig Russell
> Fix For: JDO 2 maintenance release 1
>
> Attachments: jdo-529.patch
>
>
> Test org.apache.jdo.tck.query.api.ChangeQuery expects 3 result objects:
> List expectedResult =3D Arrays.asList(new Object[] {
> new FullName("emp1First", "emp1Last"),=20
> new FullName("emp2First", "emp2Last"),
> new FullName("emp5First", "emp5Last")});
> But actually there should be 4 result objects:
> List expectedResult =3D Arrays.asList(new Object[] {
> new FullName("emp1First", "emp1Last"),=20
> new FullName("emp2First", "emp2Last"),
> new FullName("emp2First", "emp2Last"),
> new FullName("emp5First", "emp5Last")});
> because the result is not specified as DISTINCT.
--=20
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|