From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Thomas Hill <Thomas(dot)K(dot)Hill(at)t-online(dot)de> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Functions returning SETs and CallableStatment Interface |
Date: | 2015-08-26 22:37:35 |
Message-ID: | CADK3HHLL9w=QiQx5OybTd5dQYMHCqArvj60iTEUg2iUeuxuDig@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi Thomas,
Not really, stored procedures in postgresql aren't really stored procedures
rather functions and are called by doing select funcname() ...
Dave
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 22 August 2015 at 12:25, Thomas Hill <Thomas(dot)K(dot)Hill(at)t-online(dot)de> wrote:
> Hi,
>
> I would like a Java program that can be run in conjunction with an Apache
> Database Server and an Oracle server to also run using postgresql as
> backend. The program is using stored procedures and the callableStatement
> interface for "all" database communication.
>
> If I understand the following statement from the documentation correctly,
> this means my code will not work when dealing with stored procedures
> returning restultsets.
> "Functions that return data as a set should not be called via the
> CallableStatement interface, but instead should use the normal Statement
> or PreparedStatement interfaces."
>
> So I was wondering if there are any plans for an implementation that
> allows using the callableStatement interface also for functions returning
> sets?
>
> Thanks
> Thomas
>
From | Date | Subject | |
---|---|---|---|
Next Message | Markus KARG | 2015-08-27 17:54:29 | Re: [pgjdbc] chore: migrate the build to Maven (#322) |
Previous Message | Markus KARG | 2015-08-25 19:47:48 | Re: [pgjdbc] chore: migrate the build to Maven (#322) |