From: Michael Guyver <kenevel@googlemail.com>
To: pgsql-jdbc@postgresql.org
Subject: Trouble with CallableStatement
Date: Sun, 23 Jul 2006 12:27:27 +0100
Message-ID: <30b57570607230427g2e53ead8uae03cc366eccb334@mail.gmail.com> (raw)
In-Reply-To: <30b57570607230424k13af5882q72301526a6c4e2db@mail.gmail.com>
References: <30b57570607221755q76771c94l84013aef90b16f96@mail.gmail.com>
<7c6c1dd90607221842u58a77225u9893b0e446b297cf@mail.gmail.com>
<30b57570607230339u6926a9c5ua019510cca868890@mail.gmail.com>
<30b57570607230424k13af5882q72301526a6c4e2db@mail.gmail.com>
Hi there,
Having followed Adam's advice and prevented the original error by
upgrading the Jar to
8.1-407, I now get a different exception. For the same function:
CREATE OR REPLACE FUNCTION pro_register_cookie_for_user(
prmUserId int8,
prmSecureGuid varchar,
OUT outUsernameHash varchar,
OUT outMaxAge float4)
AS $$
...
$$ LANGUAGE plpgsql;
I now get the following error:
org.postgresql.util.PSQLException: No results were returned by the query.
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:259)
This is caused by the AbstractJdbc2Statement.executeWithFlags(int)
method returning false for any code path which satisfies the condition
(isFunction && returnTypeSet).
This appears to be at best mis-reported as I can clearly see the
results being read into the abstractJdbc2Statement.callResult
instance variable.
Is this right?
Michael
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: kenevel@googlemail.com
Subject: Re: Trouble with CallableStatement
In-Reply-To: <30b57570607230427g2e53ead8uae03cc366eccb334@mail.gmail.com>
References: <30b57570607221755q76771c94l84013aef90b16f96@mail.gmail.com> <7c6c1dd90607221842u58a77225u9893b0e446b297cf@mail.gmail.com> <30b57570607230339u6926a9c5ua019510cca868890@mail.gmail.com> <30b57570607230424k13af5882q72301526a6c4e2db@mail.gmail.com> <30b57570607230427g2e53ead8uae03cc366eccb334@mail.gmail.com>
* 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