Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 34421 invoked from network); 4 May 2009 19:34:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 19:34:19 -0000 Received: (qmail 59222 invoked by uid 500); 4 May 2009 19:34:18 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 59197 invoked by uid 500); 4 May 2009 19:34:18 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 59189 invoked by uid 99); 4 May 2009 19:34:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 19:34:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bhaarat.s@gmail.com designates 74.125.44.158 as permitted sender) Received: from [74.125.44.158] (HELO yx-out-1718.google.com) (74.125.44.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 19:34:10 +0000 Received: by yx-out-1718.google.com with SMTP id 36so2489586yxh.6 for ; Mon, 04 May 2009 12:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=QUASivnqDBbmn94ifRy9jmVAS6HOaWOCeFCEPKblOCg=; b=F/f+s1At+Ol9tW93icwV7kmxU/4JG9wb7f6pUJwuXGt3Dwq7n/mJDPZNW58yX8mQ6i mkF36Fb0XfPd1gSplUi+Igz0d6yX2PZaw1x4QKxR3QnWytWgUN71N4AmCg5A4AlFHwPq RZpdoz7m0RWCi5V/5qyahJ7LPSe7QqoOiX6TU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S3kjPTmZZAwTFnF19M944tUuykEjtxGiispoZYqmvtBMu8iFXQ5h0xwdWB66ArIu3g gkSlGrXcv0FtifcQGIBKVhlZsmhS8YyuxUlv9vIOVtBiZKRMLA/DIAFnMuyUxmWf9LlZ jEaZnfxgeMNm02TYmJ4yQ8FwzPTii7KrqlrC8= MIME-Version: 1.0 Received: by 10.151.72.11 with SMTP id z11mr12741289ybk.3.1241465629361; Mon, 04 May 2009 12:33:49 -0700 (PDT) Date: Mon, 4 May 2009 15:33:49 -0400 Message-ID: <491bd2b50905041233xa67739jf6342f5ba9067d0e@mail.gmail.com> Subject: how can i add an input parameter to this example From: Bhaarat Sharma To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=001e680f17a8d6c85804691b3d13 X-Virus-Checked: Checked by ClamAV on apache.org --001e680f17a8d6c85804691b3d13 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am trying to mold my code so it works with oracle stored procedures. The SP will return multiple resultsets (cursors) and will also take in a parameter. I was looking at the following example on the wiki. http://opensource.atlassian.com/confluence/oss/pages/viewpage.action?pageId=5653 I have two questions: - How can I mold this example so that if SP is expecting 1 input parameter then the code should work. I did the following: changed { ? = call refs_pck.get_refs } TO { ? = call refs_pck.get_refs (?)} The above does not seem to work I get the following error: Caused by: java.sql.SQLException: ORA-06550: line 1, column 13: PLS-00306: wrong number or types of arguments in call to 'GET_REFS' ORA-06550: line 1, column 7: PL/SQL: Statement ignored - After the above works...how can i change it so that it can be used when stored procs return multiple resultsets. Because '? = XXX' means it is taking care of just one result set. Thanks! --001e680f17a8d6c85804691b3d13 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am trying to mold my code so it works with oracle stored procedures. The = SP will return multiple resultsets (cursors) and will also take in a parame= ter.

I was looking at the following example on the wiki.= =A0


I have two questions:

=A0- How can I mold this exa= mple so that if SP is expecting 1 input parameter then the code should work= . =A0
=A0I did the following:
=A0=A0
changed= =A0{ ? =3D call refs= _pck.get_refs } TO=A0{ ? =3D call refs_pck.get_refs (?)}

The above does not seem to work
=A0
I get the fol= lowing error:=A0

Caused by: java.sql.SQLException: ORA-06550: line 1, co= lumn 13: PLS-00306: wrong number or types of arguments in call to 'GET_REFS' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

- After the above wo= rks...how can i change it so that it can be used when stored procs return m= ultiple resultsets. =A0Because '? =3D XXX' means it is taking care = of just one result set.=A0

Thanks!

--001e680f17a8d6c85804691b3d13--