db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-580) Add TCK query test using an aggregate on a size expression
Date Mon, 08 Sep 2008 22:07:44 GMT

    [ https://issues.apache.org/jira/browse/JDO-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629310#action_12629310
] 

Craig Russell commented on JDO-580:
-----------------------------------

Related issue: the specification is not explicit about result "field expressions" that are
methods applied to fields.

The test could also test things like 

"select this.phoneNumbers.size() from Employee", 
"select this.phoneNumbers.get("home") from Employee", 
"select this.firstName.substring(1,4) from Employee"

> Add TCK query test using an aggregate on a size expression
> ----------------------------------------------------------
>
>                 Key: JDO-580
>                 URL: https://issues.apache.org/jira/browse/JDO-580
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 2
>
>
> There are currently no TCK tests for using size() and max() or other aggregates in queries.
For example, find the Node or Nodes with the maximum number of children: SELECT FROM Node
WHERE this.children.size() == (SELECT MAX(n.children.size()) FROM Node n).

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


Mime
View raw message