Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 193601337B79 for ; Thu, 17 Feb 2011 07:37:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 85360-03; Thu, 17 Feb 2011 11:37:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id 9B4281337B8A; Thu, 17 Feb 2011 07:37:36 -0400 (AST) Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.softperience.eu (Postfix) with ESMTPA id 52656C000B1; Thu, 17 Feb 2011 12:37:38 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 17 Feb 2011 12:37:38 +0100 From: rsmogura To: Oliver Jowett Cc: Florian Pflug , Tom Lane , Robert Haas , Lukas Eder , , Subject: Re: Fwd: [JDBC] Weird issues when reading UDT from stored function In-Reply-To: <4D5D012E.8030707@opencloud.com> References: <4D33CD00.6000408@opencloud.com> <4D5BBD1A.7010005@opencloud.com> <4D5BC65D.8070507@opencloud.com> <24907.1297869823@sss.pgh.pa.us> <4D5C6876.7060805@opencloud.com> <4D5CF52B.9020707@opencloud.com> <4D5D012E.8030707@opencloud.com> Message-ID: <90b9defedf07d3c3732025d140897b57@mail.softperience.eu> X-Sender: rsmogura@softperience.eu User-Agent: Roundcube Webmail/0.5-rc X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/1655 X-Sequence-Number: 182444 On Fri, 18 Feb 2011 00:06:22 +1300, Oliver Jowett wrote: > On 17/02/11 23:18, rsmogura wrote: >> Yes, but driver checks number of declared out parameters and number >> of >> resulted parameters (even check types of those), to prevent >> programming >> errors. > > And..? > > Oliver And it will throw exception when result will income. If you will remove this then you will lose check against programming errors, when number of expected parameters is different that number of actual parameters. Bear in mind that you will get result set of 6 columns, but only 1 is expected. I think you can't determine what should be returned and how to fix result without signature.