From: Srivats <scshekaran@riskspan.com>
To: pgsql-jdbc@postgresql.org
Subject: passing parameters to function
Date: Tue, 8 Nov 2005 17:54:35 +0530
Message-ID: <004101c5e45f$61a3fbd0$851e010a@NBINDIAXP0133> (raw)
References: <06B12D1D68BCCA4CB1F60BB4EA509768245476@pq-exch01.actional.com>
<Pine.BSO.4.61.0511071615580.17958@leary.csoft.net>
<1967C9F5-1F3C-4AEB-B757-87193EAD5207@fastcrypt.com>
<3fccaa690511071645t461783dfw5de9819296678a10@mail.gmail.com>
Hi All,
Suppose I have a store proc which accepts 4 input parameters
and I do a CallableStatement.setObject( 1, "..,,," );
and execute the query .
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: scshekaran@riskspan.com
Subject: Re: passing parameters to function
In-Reply-To: <004101c5e45f$61a3fbd0$851e010a@NBINDIAXP0133>
References: <06B12D1D68BCCA4CB1F60BB4EA509768245476@pq-exch01.actional.com> <Pine.BSO.4.61.0511071615580.17958@leary.csoft.net> <1967C9F5-1F3C-4AEB-B757-87193EAD5207@fastcrypt.com> <3fccaa690511071645t461783dfw5de9819296678a10@mail.gmail.com> <004101c5e45f$61a3fbd0$851e010a@NBINDIAXP0133>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox