pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedStored proc returns RECORD & JDBC
2+ messages / 2 participants
[nested] [flat]
* Stored proc returns RECORD & JDBC
@ 2005-03-23 21:12 Igor Borisovsky <igor@datanaut.com>
0 siblings, 1 reply; 2+ messages in thread
From: Igor Borisovsky @ 2005-03-23 21:12 UTC (permalink / raw)
To: pgsql-jdbc
Hi.
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?
Thanks.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Stored proc returns RECORD & JDBC
@ 2005-03-23 21:49 Oliver Jowett <oliver@opencloud.com>
parent: Igor Borisovsky <igor@datanaut.com>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Jowett @ 2005-03-23 21:49 UTC (permalink / raw)
To: Igor Borisovsky <igor@datanaut.com>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-03-23 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 21:12 Stored proc returns RECORD & JDBC Igor Borisovsky <igor@datanaut.com>
2005-03-23 21:49 ` Oliver Jowett <oliver@opencloud.com>
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