X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7F900D91A3 for ; Tue, 8 Nov 2005 11:25:20 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25465-04 for ; Tue, 8 Nov 2005 15:25:04 +0000 (GMT) X-Greylist: delayed 03:00:20.137927 by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 7B919D8C16 for ; Tue, 8 Nov 2005 11:25:02 -0400 (AST) Received: from mail.dmz.newbreak.com (mail.newbreak.com [206.65.185.78]) by svr2.postgresql.org (Postfix) with ESMTP id 09B82F0B56 for ; Tue, 8 Nov 2005 12:24:47 +0000 (GMT) Received: from sysadminbox.dev02.newbreak.com (chat.dev02.newbreak.com [202.54.186.227]) by mail.dmz.newbreak.com (8.12.11/8.12.10) with ESMTP id jA8COfrX015807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Nov 2005 07:24:44 -0500 Received: from NBINDIAXP0133 ([10.1.30.133]) by sysadminbox.dev02.newbreak.com (8.12.11/8.12.11) with SMTP id jA8COY0x028063 for ; Tue, 8 Nov 2005 17:54:35 +0530 Message-ID: <004101c5e45f$61a3fbd0$851e010a@NBINDIAXP0133> From: "Srivats" To: References: <06B12D1D68BCCA4CB1F60BB4EA509768245476@pq-exch01.actional.com> <1967C9F5-1F3C-4AEB-B757-87193EAD5207@fastcrypt.com> <3fccaa690511071645t461783dfw5de9819296678a10@mail.gmail.com> Subject: passing parameters to function Date: Tue, 8 Nov 2005 17:54:35 +0530 Organization: NewBreak MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003E_01C5E48D.7AD6B420" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200511/47 X-Sequence-Number: 14145 This is a multi-part message in MIME format. ------=_NextPart_000_003E_01C5E48D.7AD6B420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Suppose I have a store proc which accepts 4 input parameters and I do a CallableStatement.setObject( 1, "..,,," ); and execute the query .=20 It gives me that number of arguments need 4, but found only 1 (java.sql.SQLException:Incorrect number of arguments for PROCEDURE = FHLMC.test1; expected 4, got 1) during runtime. Should i set the other 3 input parameters to null, even when I dont want to pass these parameters to the SP. Thks ------=_NextPart_000_003E_01C5E48D.7AD6B420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
 
Suppose I have a store proc which = accepts 4 input=20 parameters
and I do a CallableStatement.setObject( = 1, "..,,,"=20 );
and execute the query .
 
It gives me that number of = arguments need=20 4, but found only 1
 
(java.sql.SQLException:Incorrect number of=20 arguments for PROCEDURE FHLMC.test1; expected 4, got = 1)
 
during runtime. Should i set the=20 other 3 input parameters to null,
even when I dont want to pass these = parameters to=20 the SP.
 
Thks
 
 
------=_NextPart_000_003E_01C5E48D.7AD6B420--