|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 13/Oct/05 06:23 PM
This patch implements the assertions above.
Some comments about
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. The second patch contains the comments above.
Two comments:
- Class OrderOfParameters defines queries using explicilty declared parameters . I propose to change this to implicit parameters, because the assertion only covers implicit parameters. - The grouping query in class ImplicitParameters is not valid, it misses a result clause. I propose to add the following result clause: "department.name, COUNT(this)" and change the grouping clause to "department.name HAVING COUNT(this) >= :min". I incorporated the comments above into the second patch and checked in the changes.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||