From: | chap at anastigmatix(dot)net (Chapman Flack) |
---|---|
To: | |
Subject: | [Pljava-dev] Sample Code ResultSetHandle interface |
Date: | 2015-08-23 16:25:55 |
Message-ID: | 55D9F413.7060405@anastigmatix.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
On 08/19/15 21:47, Chapman Flack wrote:
> It seems to me that (1) and (2) indicate you have done the PL/Java and
> SQL parts correctly, and the question concerns the behavior of
> CallableStatement as implemented in the PostgreSQL JDBC driver.
Just to close the loop, Herr Hill found the answer in this section
of the pgsql-jdbc project documentation:
https://jdbc.postgresql.org/documentation/94/callproc.html#callproc-resultset-setof
It seems the PostgreSQL JDBC driver hasn't implemented CallableStatement
to work with a procedure returning a setof type, and the workaround is to
use a regular Statement with 'select * from theprocedure()'.
This is independent of PL/Java, but I suppose the pgsql-jdbc devs would
accept a patch removing that limitation.
-Chap
From | Date | Subject | |
---|---|---|---|
Next Message | Chapman Flack | 2015-08-29 00:01:02 | [Pljava-dev] documentation updates |
Previous Message | Chapman Flack | 2015-08-20 01:47:56 | [Pljava-dev] Sample Code ResultSetHandle interface |