Re: Using User Defined Type in JDBC code - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Using User Defined Type in JDBC code
Date
Msg-id Pine.BSO.4.56.0403261621530.3597@leary.csoft.net
Whole thread Raw
In response to Using User Defined Type in JDBC code  (Gunjeet Singh <Gunjeet.Singh@eng.sun.com>)
List pgsql-jdbc

On Thu, 25 Mar 2004, Gunjeet Singh wrote:
> Hi,
>
> Can somone tell me how I can call a pl/pgsql stored function
> that returns a user-defined type from the JDBC code ?
>
> What type do you use while registering the out parameter for a function
> that returns a user-defined type ?
>

The easiest way to do this is not to use a CallableStatement, but a normal
Statement or PreparedStatement and issue a

SELECT * FROM string_n_refcursor();

Kris Jurka

pgsql-jdbc by date:

Previous
From:
Date:
Subject: location of jdbc.jar
Next
From: Kris Jurka
Date:
Subject: Re: location of jdbc.jar