|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 15/Oct/05 12:54 AM
The patch implments the assertions above.
Michael Watzek made changes - 15/Oct/05 12:54 AM
Some comments:
datastoreidentity/schema.sql: - The patch replaces table JDOQLKeywordsAsFieldNames with table NoExtent. instad of adding table NoExtent. MixedVariables.java: - Should we put parenthesis around the two contains clauses and have them on separate line, to improve readability? (team.contains(employee) & employee.firstname == 'emp1First') & (projects.contains(project) & project.name == 'orange')" UnconstrainedVariable.java: - How about replacing the test query with the folowing: SELECT FROM Employee WHERE this.hireDate > e.hireDate & e.personid = :id VARIABLES Employee e VariablesAndFields.java: - How about adding two more test queries? The first query could use a variable having a name of a field (e.g. manager): SELECT FROM Employee WHERE team.contains(manager) & manager.firstname = 'emp1First' VARIABLES Employee manager The second query uses the same filter w/o variable declaration. The query result is different because now manager denotes the field and not a variable. VariablesWithoutExtent - How about replcacing the test query with SELECT FROM Person WHERE this.personid = noExtent.id VARIABLES NoExtent noExtent There should be a NoExtent instance having the id of an exsting Person in the database, but since class NoExtent does not have an extent the query result is empty. The second patch implements the comments above.
Michael Watzek made changes - 27/Oct/05 02:14 AM
The new patch looks good.
Just one comment: I think support for unconstrained variables is optional, so classes UnconstrainedVariable and VariablesWithoutExtent should execute the tests only if the JDO implementation under test supports option javax.jdo.option.UnconstrainedQueryVariables. Other than that the patch is ready for checkin. The check on javax.jdo.option.UnconstrainedQueryVariables is already part of the second patch. The patch has been checked in as supplied.
Michael Watzek made changes - 27/Oct/05 06:50 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||