Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 29167 invoked from network); 16 Jul 2007 15:48:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2007 15:48:06 -0000 Received: (qmail 82448 invoked by uid 500); 16 Jul 2007 15:48:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 82380 invoked by uid 500); 16 Jul 2007 15:48:05 -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 82355 invoked by uid 99); 16 Jul 2007 15:48:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 08:48:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 08:48:02 -0700 Received: from d1-emea-09.sun.com (d1-emea-09.sun.com [192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6GFleLa014575 for ; Mon, 16 Jul 2007 15:47:40 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JLA00C013O28000@d1-emea-09.sun.com> (original mail from Oystein.Grovlen@Sun.COM) for derby-user@db.apache.org; Mon, 16 Jul 2007 16:47:40 +0100 (BST) Received: from [129.159.112.239] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JLA001RG3VF0GSB@d1-emea-09.sun.com> for derby-user@db.apache.org; Mon, 16 Jul 2007 16:47:40 +0100 (BST) Date: Mon, 16 Jul 2007 17:47:39 +0200 From: Oystein Grovlen - Sun Norway Subject: Re: Procedure return value In-reply-to: <5A3418AC7876DC4B9FEEC69799C39B1F205591@servo.Traderoot.local> Sender: Oystein.Grovlen@Sun.COM To: Derby Discussion Message-id: <469B931B.7070203@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 8BIT References: <5A3418AC7876DC4B9FEEC69799C39B1F205591@servo.Traderoot.local> User-Agent: Thunderbird 2.0.0.0 (X11/20070419) X-Virus-Checked: Checked by ClamAV on apache.org Jacques Coetzee wrote: > First off, this is not really a bug, it's more of a restriction. > > As per the needs of my inhouse framework I need a procedure to be able > to return a value other than > a ResultSet (I need a integer). The reason I need to use a procedure; is > because I'm using INOUT parameters. > > When call my procedure, it needs to look like this: > > { ? = call myProcedure(?,?,?,?,?,?)} > > Where the first ? represents a status-code, ie a failure = -1, and a > successfull would be 1. > All the other procedure paramters are INOUT. I am probably missing something, but can you not let the status-code be an INOUT parameter? -- �ystein