CallableStatements: index starts at 2 - Mailing list pgsql-jdbc

From Thomas Frieling
Subject CallableStatements: index starts at 2
Date
Msg-id 439FFA76.1070706@8hertz.de
Whole thread Raw
Responses Re: CallableStatements: index starts at 2
List pgsql-jdbc
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


pgsql-jdbc by date:

Previous
From: Rob Kirkbride
Date:
Subject: Re: Group Query
Next
From: Andres Olarte
Date:
Subject: Re: CallableStatements: index starts at 2