X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 609AA9FA7B6 for ; Sun, 23 Jul 2006 08:27:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 69724-02 for ; Sun, 23 Jul 2006 11:27:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by postgresql.org (Postfix) with ESMTP id 3FAB89FA60C for ; Sun, 23 Jul 2006 08:27:28 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so1251602nfc for ; Sun, 23 Jul 2006 04:27:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HHNl4t5eGXSDXqj8+BFe3g6JnHsvSvTbT0aDV0R4Ozka3zrzxNamnBtpM2r4IMPiObSjPoWx2dfu2ScHLocxEHDkHICh/KKKG5PZEEmq70hI2CY9WXnLFNTKv2GgMo587SCrukTg/7Be+8ZPuMi3YJXZ7JGsCuKahCkgSgnbtrs= Received: by 10.78.177.3 with SMTP id z3mr1082663hue; Sun, 23 Jul 2006 04:27:27 -0700 (PDT) Received: by 10.78.183.20 with HTTP; Sun, 23 Jul 2006 04:27:27 -0700 (PDT) Message-ID: <30b57570607230427g2e53ead8uae03cc366eccb334@mail.gmail.com> Date: Sun, 23 Jul 2006 12:27:27 +0100 From: "Michael Guyver" To: pgsql-jdbc@postgresql.org Subject: Trouble with CallableStatement In-Reply-To: <30b57570607230424k13af5882q72301526a6c4e2db@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <30b57570607221755q76771c94l84013aef90b16f96@mail.gmail.com> <7c6c1dd90607221842u58a77225u9893b0e446b297cf@mail.gmail.com> <30b57570607230339u6926a9c5ua019510cca868890@mail.gmail.com> <30b57570607230424k13af5882q72301526a6c4e2db@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/73 X-Sequence-Number: 15499 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