From: Thomas Frieling <frieling@8hertz.de>
To: pgsql-jdbc@postgresql.org
Subject: CallableStatements: index starts at 2
Date: Wed, 14 Dec 2005 11:56:54 +0100
Message-ID: <439FFA76.1070706@8hertz.de> (raw)
It seems that in Version "8.2dev-500 JDBC 3" CallableStatements are
implemented differently from older Versions.
The index to set fields now starts at 2.
This _did_ work:
CallableStatement cS = con.prepareCall("{ call test(?)}";
cS.setString( 1, "abc" );
This _now_ works:
CallableStatement cS = con.prepareCall("{ call test(?)}";
cS.setString( 2, "abc" );
Thanks,
Thomas
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: frieling@8hertz.de
Subject: Re: CallableStatements: index starts at 2
In-Reply-To: <439FFA76.1070706@8hertz.de>
References: <439FFA76.1070706@8hertz.de>
* 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