Re: Using User Defined Type in JDBC code

From: Kris Jurka <books(at)ejurka(dot)com>
To: Gunjeet Singh <Gunjeet(dot)Singh(at)eng(dot)sun(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org, Gunjeet(dot)Singh(at)Sun(dot)COM
Subject: Re: Using User Defined Type in JDBC code
Date: 2004-03-26 21:26:23
Message-ID: Pine.BSO.4.56.0403261621530.3597@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2004-03-26 21:34:46 Re: location of jdbc.jar
Previous Message Kris Jurka 2004-03-26 21:14:20 Re: location of jdbc.jar