public inbox for [email protected]
help / color / mirror / Atom feedSubject: [Pljava-dev] Sample Code ResultSetHandle interface
Date: Wed, 19 Aug 2015 21:47:56 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Hello,
Just to be sure I understand correctly....
1. Using PL/Java you have implemented the sample listSupers method,
and you have registered this as a PostgreSQL stored procedure,
2. It works, as shown by directly sending SELECT rte.listSupers()
to PostgreSQL,
3. You have a standalone Java program that makes a normal connection
to PostgreSQL (using the PostgreSQL JDBC driver?) and you want this
program to use the JDBC CallableStatement interface to call the
procedure you defined earlier.
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.
I am afraid the usefulness of my answer may end here, as I have no
experience using the CallableStatement JDBC interface myself. It seems
for most purposes you could equivalently (modulo some possible optimization)
use an ordinary Statement and the same SELECT statement that you confirmed
working in (2). Out of curiosity, does that work for you?
Have you had any better response raising the question on pgsql-jdbc ?
Regards,
-Chap
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Subject: Re: [Pljava-dev] Sample Code ResultSetHandle interface
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox