You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Watzek (JIRA)" <ji...@apache.org> on 2005/10/05 15:50:49 UTC

[jira] Updated: (JDO-168) XML query testdata needs to be extended for new JDO 2 query tests

     [ http://issues.apache.org/jira/browse/JDO-168?page=all ]

Michael Watzek updated JDO-168:
-------------------------------

    Attachment: JDO-168.patch

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.


> XML query testdata needs to be extended for new JDO 2 query tests
> -----------------------------------------------------------------
>
>          Key: JDO-168
>          URL: http://issues.apache.org/jira/browse/JDO-168
>      Project: JDO
>         Type: Improvement
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-168.patch
>
> 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

-- 
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