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/04 14:31:50 UTC

[jira] Created: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Implement new JDO 2 query tests cases concerning other language changes.
------------------------------------------------------------------------

         Key: JDO-162
         URL: http://issues.apache.org/jira/browse/JDO-162
     Project: JDO
        Type: New Feature
  Components: tck20  
    Reporter: Michael Watzek
 Assigned to: Michael Watzek 


We need 5 new test classes, one for each of the following assertions: 

- A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
- A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
- A14.6.8-1: setRange(long fromIncl, long toExcl).
- A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
- A14.6.8-3: setRange(String range).

Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.


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


[jira] Updated: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Posted by "Michael Watzek (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-162?page=all ]

Michael Watzek updated JDO-162:
-------------------------------

    Attachment: JDO-162.patch2

The second patch implements the comments above. Additionally, it adds ORDER BY clauses to all valid range queries.


> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch, JDO-162.patch2
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

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


[jira] Resolved: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Posted by "Michael Watzek (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-162?page=all ]
     
Michael Watzek resolved JDO-162:
--------------------------------

    Resolution: Fixed

The second patch implements the comments above and has been checked in.

That patch contained two bugs which has been fixed and checked in also:

1) The call of method Query.setRange had been enabled.
2) A logger for class MyLibReader was introduced in all logging properties files.


> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch, JDO-162.patch2
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

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


[jira] Updated: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Posted by "Michael Watzek (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-162?page=all ]

Michael Watzek updated JDO-162:
-------------------------------

    Attachment: JDO-162.patch

The patch implements the assertions above.


> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

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


[jira] Commented: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-162?page=comments#action_12355947 ] 

Michael Bouschen commented on JDO-162:
--------------------------------------

Some comments about the patch

CharacterAndStringLiterals.java:
- I propose to change the filter of the invalid query to "charNotNull == 'O.'". 
- I propose to add a new invalid query  using double quotes: "charNotNull == \"O.\""
- OR is not a valid operaor in JDOQL.
- I propose to add another valid query using double quotes:  stringNull.startsWith(\"Even\") OR charNotNull == \"O\"

PositiveRange, RangeAsString:
- I propose to add another test query with a non zero from range.

IdentifiersEqualFieldNames:
- I think we need two test queries here:  one accesing a persistent field such as "this.firstname = 'emp1First'" and another one uinsg a constatnt such as "this.personid < Byte.MAX_VALUE.


> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

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


[jira] Commented: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes.

Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-162?page=comments#action_12356184 ] 

Michael Bouschen commented on JDO-162:
--------------------------------------

Looks good, ship it.

> Implement new JDO 2 query tests cases concerning other language changes.
> ------------------------------------------------------------------------
>
>          Key: JDO-162
>          URL: http://issues.apache.org/jira/browse/JDO-162
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Michael Watzek
>  Attachments: JDO-162.patch, JDO-162.patch2
>
> We need 5 new test classes, one for each of the following assertions: 
> - A14.6.2-42: There is no distinction made between character literals and String literals. Single character String literals can be used wherever character literals are permitted. String literals are allowed to be delimited by single quote marks or double quote marks. This allows String literal filters to use single quote marks instead of escaped double quote marks.
> - A14.6.2-43: Identifiers that are persistent field names or public final static field names are required to be supported by JDO implementations.
> - A14.6.8-1: setRange(long fromIncl, long toExcl).
> - A14.6.8-2: If ((toExcl - fromIncl) <= 0) evaluates to true, if the result of the query execution is a List, the returned List contains no instances, and an Iterator obtained from the List returns false to hasNext(). If the result of the query execution is a single instance (setUnique(true)), it will have a value of null.
> - A14.6.8-3: setRange(String range).
> Details can be found on Wiki page http://wiki.apache.org/jdo/QueryTests#OtherLanguageChanges.

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