Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74214 invoked from network); 26 Sep 2005 19:49:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2005 19:49:56 -0000 Received: (qmail 43311 invoked by uid 500); 26 Sep 2005 19:49:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 43277 invoked by uid 500); 26 Sep 2005 19:49:55 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 43264 invoked by uid 99); 26 Sep 2005 19:49:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2005 12:49:55 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.110.153] (HELO e35.co.us.ibm.com) (32.97.110.153) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2005 12:50:01 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e35.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id j8QJlFxn012434 for ; Mon, 26 Sep 2005 15:47:15 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j8QJnVrJ028396 for ; Mon, 26 Sep 2005 13:49:31 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j8QJnVpX013423 for ; Mon, 26 Sep 2005 13:49:31 -0600 Received: from [127.0.0.1] (johnm.svl.ibm.com [9.30.145.183] (may be forged)) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j8QJnTEX013356 for ; Mon, 26 Sep 2005 13:49:30 -0600 Message-ID: <433850CB.9040904@debrunners.com> Date: Mon, 26 Sep 2005 12:49:31 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: [PATCH] (DERBY-582) Dynamic parameter should be allowed to be the operand of unary operator "-". Derby throws exception 42X36: The '-' operator is not allowed to take a ? parameter as an operand." References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii 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 Mamta Satoor wrote: > Hi, > > I have a simple patch to allow dynamic parameters for unary minus and > plus. The parameter will be bound to DOUBLE. The patch is attached to > JIRA. Can a commiter please commit it if everything looks good? I have > run all the tests and no new failures. Have also added a test for this. What do you mean the parameter is bound to DOUBLE? In the example of in DERBY-582 select * from t1 where c11 = -? shouldn't the parameter be the same type as c11? Dan.