Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 13550 invoked from network); 10 Oct 2006 17:23:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 17:23:01 -0000 Received: (qmail 72305 invoked by uid 500); 10 Oct 2006 17:23:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72264 invoked by uid 500); 10 Oct 2006 17:23:00 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 72255 invoked by uid 99); 10 Oct 2006 17:23:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 10:23:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 10:22:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ABA617142EF for ; Tue, 10 Oct 2006 10:22:20 -0700 (PDT) Message-ID: <14996725.1160500940700.JavaMail.root@brutus> Date: Tue, 10 Oct 2006 10:22:20 -0700 (PDT) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-183) Parameter names required in CREATE FUNCTION In-Reply-To: <1830573051.1111801456509.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/DERBY-183?page=comments#action_12441215 ] Bryan Pendleton commented on DERBY-183: --------------------------------------- Hi James, thanks for the updated patch, and for the clear explanation of the LOOKAHEAD behaviors. The tests look good to me. They demonstrate the problem: they fail without the code changes, and they succeed when the code changes are applied. It is always good to have tests such as these. I had no trouble applying your patch and running the two modified tests. +1 from me to commit; is anyone else reviewing this change? > Parameter names required in CREATE FUNCTION > ------------------------------------------- > > Key: DERBY-183 > URL: http://issues.apache.org/jira/browse/DERBY-183 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.0 > Reporter: Jack Klebanoff > Assigned To: James F. Adams > Priority: Minor > Attachments: Derby183.patch.txt, Derby183.patch2.txt > > > A statement like > create function s2.f2( char(8), integer) returns int > language java parameter style java external name 'myclass.mymethod' > fails with the message > ERROR 42X01: Syntax error: Encountered "char" at line 1, column 24 > However > create function s2.f2( p1 char(8), p2 integer) returns int > language java parameter style java external name 'myclass.mymethod' > is accepted. > The Derby documentation (at http://incubator.apache.org/derby/manuals/reference/sqlj27.html#CREATE+PROCEDURE+Statement), the SQL2003 standard, and DB2 all agree that the parameter name is optional. -- 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