Issue Details (XML | Word | Printable)

Key: JDO-168
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michael Watzek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

XML query testdata needs to be extended for new JDO 2 query tests

Created: 05/Oct/05 10:23 PM   Updated: 13/Oct/05 01:39 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-168.patch 2005-10-05 10:50 PM Michael Watzek 25 kB

Resolution Date: 13/Oct/05 01:39 AM


 Description  « Hide
The new JDO 2 query test cases require more complex testdata than contained in 'companyForQueryTests.xml'. I propose to copy the content of 'companyAllRelationships.xml' into 'companyForQueryTests.xml'.

Due to this change some existing query tests must be adapted wrt the expected query result:

- test\java\org\apache\jdo\tck\query\jdoql\methods\SupportedCollectionMethods.java
- test\java\org\apache\jdo\tck\query\jdoql\NavigationThroughReferencesUsesDotOperator.java
- test\java\org\apache\jdo\tck\query\jdoql\Cast.java
- test\java\org\apache\jdo\tck\query\jdoql\DenoteUniquenessInFilter.java
- test\java\org\apache\jdo\tck\query\jdoql\NullCollectionsAndContainsMethod.java
- test\java\org\apache\jdo\tck\query\jdoql\operators\EqualityAndComparisonsBetweenDateFieldsAndParameters.java
- test\java\org\apache\jdo\tck\query\jdoql\operators\EqualityAndComparisonsBetweenStringFieldsAndParameters.java


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 05/Oct/05 10:50 PM
The patch fixes the issues above.

Applying this patch, JPOX returns two more failures with alltests.conf for both, application identity and datastore identity. The test cases NavigationThroughANullValuedField and NavigationThroughReferencesUsesDotOperator fail due to unexpected query results. JPOX generates an incomplete SQL statement for the query missing a discriminator comparison for a relationship navigation. For this reason, the query returns more results than expected. I'll file a separate issue.

Michael Watzek added a comment - 05/Oct/05 11:07 PM
I filed JDO-169 describing the bug and the solution.

Michael Bouschen added a comment - 11/Oct/05 11:54 PM
I agree, the new JDO2 query tests require more test data.
The patch JDO-168.patch looks good!

Michael Watzek added a comment - 13/Oct/05 01:39 AM
The patch has been checked in.