| From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
|---|---|
| To: | Igor Borisovsky <igor(at)datanaut(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Stored proc returns RECORD & JDBC |
| Date: | 2005-03-23 21:49:01 |
| Message-ID: | 4241E44D.8030502@opencloud.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | William Shatner | 2005-03-24 11:17:23 | Re: MS Access to PostgreSQL |
| Previous Message | Igor Borisovsky | 2005-03-23 21:12:17 | Stored proc returns RECORD & JDBC |