Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Calling PGSQL Stored function thru JDBC


  • From: Kris Jurka <books(at)ejurka(dot)com>
  • To: Nick Selva <mavles_pgsql(at)yahoo(dot)com>
  • Cc: pgsql-jdbc(at)postgresql(dot)org
  • Subject: Re: Calling PGSQL Stored function thru JDBC
  • Date: Fri, 30 Jul 2004 01:31:23 -0500 (EST)
  • Message-id: <Pine.BSO.4.56.0407300128350.4881@leary.csoft.net> <text/plain>


On Thu, 29 Jul 2004, Nick Selva wrote:

> [my CallableStatement doesn't work.]

You have misnumbered your parameters.  You want to do cs.setString(2, "P") 
because that matches with the second "?", and cs.registerOutParameter(1, 
Types.VARCHAR) because that is the out parameter.  You also may need to 
say "{ ? = call get_state(?) }", note the equal sign.

Kris Jurka




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group