From: Kris Jurka <books@ejurka.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Luis Londono <somakani@gmail.com>
Subject: Re: Bug with callable statement and output parameters
Date: Wed, 26 Apr 2006 18:37:01 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604261827560.30145@leary2.csoft.net> (raw)
In-Reply-To: <D65A5222-DACA-4BBC-97E0-C3D4BAAB2525@fastcrypt.com>
References: <3f205b320604201502o112f68abhafbc0a2e0a845218@mail.gmail.com>
<A29BE1BD-7BA2-49F9-BCEC-829A63B11874@fastcrypt.com>
<3f205b320604201703x2d5a52c7s214a039e36539a8a@mail.gmail.com>
<DB439E45-9AF2-4EC9-8215-4A83DFE31A52@fastcrypt.com>
<Pine.BSO.4.63.0604261551120.31984@leary2.csoft.net>
<D65A5222-DACA-4BBC-97E0-C3D4BAAB2525@fastcrypt.com>
On Wed, 26 Apr 2006, Dave Cramer wrote:
> I'll try to fix it tonight.
No rush, I've got some other things I'm still looking at.
> If you have any ideas on how to resolve this I'm all ears.
>
1) Require that the number of columns returned is equal to the number of
parameters that the user has called registerOutParameter for.
2) Iterate over the number of parameters ignoring those that haven't been
registered as out paramaters when comparing with the ResultSet.
This will require adding an extra boolean hasBeenRegistered[] array or
inventing an int value that doesn't overlap with any java.sql.Types value
so you can tell what has/has not been registered.
Also I don't know if it is a problem to require a user to register an out
parameter he has no intention of calling a getXXX method on, but that
seems like the only workable solution short of trying to poke into the
system catalogs to find the called function.
Kris Jurka
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, pg@fastcrypt.com, somakani@gmail.com
Subject: Re: Bug with callable statement and output parameters
In-Reply-To: <Pine.BSO.4.63.0604261827560.30145@leary2.csoft.net>
References: <3f205b320604201502o112f68abhafbc0a2e0a845218@mail.gmail.com> <A29BE1BD-7BA2-49F9-BCEC-829A63B11874@fastcrypt.com> <3f205b320604201703x2d5a52c7s214a039e36539a8a@mail.gmail.com> <DB439E45-9AF2-4EC9-8215-4A83DFE31A52@fastcrypt.com> <Pine.BSO.4.63.0604261551120.31984@leary2.csoft.net> <D65A5222-DACA-4BBC-97E0-C3D4BAAB2525@fastcrypt.com> <Pine.BSO.4.63.0604261827560.30145@leary2.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox