pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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




view thread (7+ messages)  latest in thread

Message-ID: <439FFA76.1070706@8hertz.de>
Permalink:  ../439FFA76.1070706@8hertz.de/
Also on:    postgresql.org/message-id/439FFA76.1070706@8hertz.de

 · 

reply

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