From: | "Corradini, Carlos" <CCorradini(at)correoargentino(dot)com(dot)ar> |
---|---|
To: | "Kevin Grittner" <kgrittn(at)gmail(dot)com> |
Cc: | "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>, "Kris Jurka" <books(at)ejurka(dot)com> |
Subject: | Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA |
Date: | 2015-12-14 13:20:14 |
Message-ID: | 2A8F1D1266E80A4C8E5DF89F304227971197095A@B1842ZACS0046.correo.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
I forgot one more thing ...
The return I made in the stored function is : RETURNS RECORD AS '
Excuse me for the forget .......
-----Mensaje original-----
De: Kevin Grittner [mailto:kgrittn(at)gmail(dot)com]
Enviado el: viernes, 11 de diciembre de 2015 06:54 p.m.
Para: Corradini, Carlos
CC: Adrian Klaver; pgsql-jdbc(at)postgresql(dot)org; pgsql-general(at)postgresql(dot)org; Kris Jurka
Asunto: Re: [GENERAL] [JDBC] plpgsql function with RETURNS SETOF refcursor in JAVA
On Fri, Dec 11, 2015 at 2:11 PM, Corradini, Carlos <CCorradini(at)correoargentino(dot)com(dot)ar> wrote:
> with your and Mr. Kevin explanations, the Java program have worked
> fine and have printed the data obtained from a two cursors inside a
> PostgreSQL Database Stored Function.
>
> Then, I can confirm that this version of DB ( 9.4 ) use the OUT
> parameter with refcursors and works fine. The JDBC interface provided
> by the Server Postgresql can read the data inserted into these two
> cursors via a callablestatement.registeroutparameter.
For the benefit of others who may later have a similar problem and find this thread, it would be great if you could provide a little self-contained example of a Java program which uses the technique that you settled on.
Thanks!
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Corradini, Carlos | 2015-12-14 13:36:48 | Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA |
Previous Message | Vladimir Sitnikov | 2015-12-14 13:19:56 | Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA |
From | Date | Subject | |
---|---|---|---|
Next Message | Philippe Marschall | 2015-12-14 13:24:36 | timestamp with time zone wire format |
Previous Message | Vladimir Sitnikov | 2015-12-14 13:19:56 | Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA |