Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E04D8EB11 for ; Fri, 28 Dec 2012 06:22:52 +0000 (UTC) Received: (qmail 81054 invoked by uid 500); 28 Dec 2012 06:22:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 80627 invoked by uid 500); 28 Dec 2012 06:22:51 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 80583 invoked by uid 99); 28 Dec 2012 06:22:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 06:22:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 06:22:42 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ToTKz-0003oM-RE for derby-user@db.apache.org; Fri, 28 Dec 2012 07:22:34 +0100 Received: from ABTS-KK-Dynamic-001.227.167.122.airtelbroadband.in ([ABTS-KK-Dynamic-001.227.167.122.airtelbroadband.in]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Dec 2012 07:22:33 +0100 Received: from kosurusekhar by ABTS-KK-Dynamic-001.227.167.122.airtelbroadband.in with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Dec 2012 07:22:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Sekhar Subject: Re: number of parameters Date: Fri, 28 Dec 2012 06:22:00 +0000 (UTC) Lines: 54 Message-ID: References: <619F13B2042F204E8E8E93D73870255809E11F73@EXJSQUSDAG04.ad.jefco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 122.167.227.1 (Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)) X-Virus-Checked: Checked by ClamAV on apache.org Pavel Bortnovskiy writes: > > > > Hello: >   > we have a need to create a java-mapped function which will take 92 parameters, but we are running into Derby’s limitation: >   > Caused by: java.sql.SQLException: The limit for the number of parameters for a procedure has been exceeded. Limit is 90 and number of parameters for procedure > CALC_VALUES are 92. >   > http://db.apache.org/derby/docs/10.8/ref/rrefdbmlimits.html >   > Can this limit either be increased or worked-around? >   > Thanks, > Pavel. > > > > Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email, including any attachments, are confidential to the ordinary user of the email address to which it was addressed. If you are not the addressee of this email you may not > copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. This email may be produced at the request of regulators or in connection with civil litigation. Jefferies accepts no liability for any errors or omissions arising as a result > of transmission. Use by other than intended recipients is prohibited. In the United Kingdom, Jefferies operates as Jefferies International Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London EC4V 3BJ. > Jefferies International Limited is authorised and regulated by the Financial Services Authority. > > Hi Pavel The best solution is rather than passing 92 method parameters we can create User Defined Type in Derby. An UDT will point to external java class where we can have all parameters as properties. now you can use this class as a single parameter. Regards Sekhar.