pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Igor Borisovsky <igor@datanaut.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Stored proc returns RECORD & JDBC
Date: Thu, 24 Mar 2005 09:49:01 +1200
Message-ID: <4241E44D.8030502@opencloud.com> (raw)
In-Reply-To: <200503232111.j2NLBDC30590@alexru.adsl.kis.ru>
References: <200503232111.j2NLBDC30590@alexru.adsl.kis.ru>

Igor Borisovsky wrote:

> As you know we have to invoke the stored proc which returns RECORD in 
> the following manner:
> 
> Select * from func() as (a datatype1, b datatype2…);
> 
> There is no problem to execute such statement as PreparedStatement.
> 
> But I need to use only CallableStatement.
> 
> Does anyone know how to do it?

That query will work fine directly in a CallableStatement -- it's a 
superset of PreparedStatement.

If you meant "I need to use the {call} escape syntax in a 
CallableStatement to generate a query like this" then you can't do that 
with the current driver.

-O



view thread (2+ messages)

Message-ID: <4241E44D.8030502@opencloud.com>
Permalink:  ../4241E44D.8030502@opencloud.com/
Also on:    postgresql.org/message-id/4241E44D.8030502@opencloud.com

 · 

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: oliver@opencloud.com, igor@datanaut.com
  Subject: Re: Stored proc returns RECORD & JDBC
  In-Reply-To: <4241E44D.8030502@opencloud.com>
  References: <200503232111.j2NLBDC30590@alexru.adsl.kis.ru> <4241E44D.8030502@opencloud.com>

* 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