db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-160) Implement new JDO 2 query tests cases concerning parameters.
Date Mon, 17 Oct 2005 09:27:45 GMT
    [ http://issues.apache.org/jira/browse/JDO-160?page=comments#action_12332218 ] 

Michael Bouschen commented on JDO-160:
--------------------------------------

Some comments about JDO-160.patch:

OrderOfParameters:
- I propose to add a second test query that switches the order of param1 and param2, but keeps
the order of the actula parameter values. The second query should return an empty result list.

MixedParameters:
- How about adding another negative test query having an explicit and an implict parameter?
It declares one parameter "String param1". The filter uses this parameter plus an implicit
parameter: "firstname == param1 & lastname == :param2". This mix of explict and implict
declared parameters is not valid. 

ImplicitParameters:
- I propose to add a test query using an implict parameter in the having clause.

> Implement new JDO 2 query tests cases concerning parameters.
> ------------------------------------------------------------
>
>          Key: JDO-160
>          URL: http://issues.apache.org/jira/browse/JDO-160
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-160.patch
>
>  We need 4 new test classes, one for each of the following assertions: 
> - A14.6.3-2: Parameters must all be declared explicitly via declareParameters or all
be declared implicitly in the filter.
> - A14.6.3-3: Parameters implicitly declared (in the result, filter, grouping, ordering,
or range) are identified by prepending a ":" to the parameter everywhere it appears. All parameter
types can be determined by one of the following techniques.
> - A14.6.13-3: If implicit parameters are used, their order of appearance in the query
determines their order for binding to positional parameters for execution.
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#Parameters

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message