Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 1009 invoked from network); 26 Oct 2005 10:31:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Oct 2005 10:31:25 -0000 Received: (qmail 14725 invoked by uid 500); 26 Oct 2005 10:31:17 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 14694 invoked by uid 99); 26 Oct 2005 10:31:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 03:31:17 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 141D221F for ; Wed, 26 Oct 2005 12:30:56 +0200 (CEST) Message-ID: <1063189925.1130322656080.JavaMail.jira@ajax.apache.org> Date: Wed, 26 Oct 2005 12:30:56 +0200 (CEST) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-162) Implement new JDO 2 query tests cases concerning other language changes. In-Reply-To: <1775486521.1128429110194.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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