Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B54909FB1CA for ; Mon, 2 Jul 2007 15:31:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 56906-03 for ; Mon, 2 Jul 2007 15:31:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by postgresql.org (Postfix) with ESMTP id 913789FB1B9 for ; Mon, 2 Jul 2007 15:31:27 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I5QgI-0003pV-Ka for pgsql-jdbc@postgresql.org; Mon, 02 Jul 2007 11:31:26 -0700 Message-ID: <11399288.post@talk.nabble.com> Date: Mon, 2 Jul 2007 11:31:26 -0700 (PDT) From: "thomas.risberg" To: pgsql-jdbc@postgresql.org Subject: Re: getProcedureColumns In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: thomas.risberg@tridb.com References: <1C85230A-C17D-4601-B84E-6F43176C5D6D@gmail.com> <53951298-D245-4EB2-9C3E-EA05A48C77BA@gmail.com> <1D8F84DE-26E9-4C88-B6F4-A7A74B85DE5C@gmail.com> <3599D18B-946A-461B-9429-89E0A4868345@gmail.com> <110D999D-C0C2-47D8-8905-56B3CA04ED45@gmail.com> <11398134.post@talk.nabble.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/7 X-Sequence-Number: 17181 Thanks Kris. I'll keep an eye on the 8.3dev drivers. A related question - I have the following proc declaration: create function my_proc(in_text in varchar, in_number in numeric, out_result out varchar, out_text out varchar) RETURNS record Since there are multiple out parameters it seemed as if I was forced to declare the return as a record. Is this assumption correct? Looking at the metadata for this proc I see: - my_proc 5 1111 record - my_proc 1 12 varchar - my_proc 1 2 numeric but this doesn't seem to be enough tp actually build the call statement and executing the proc. Using con.prepareCall("{? = call my_proc(?, ?)}") - I get org.postgresql.util.PSQLException: A CallableStatement was excecuted with an invalid number of parameters. Switching to con.prepareCall("{? = call my_proc(?, ?, ?)}") I can get it to work but only by registering two out parameters of Types.VARCHAR. So it seems that it is not possible to construct the appropriate call sequence just based on the metadata when there are multiple out parameters. Any insights are appreciated. Thanks, Thomas Risberg Kris Jurka wrote: > > > > On Mon, 2 Jul 2007, thomas.risberg wrote: > >> Did this patch ever make it into the codebase? I'm interested in getting >> the actual names declared when the function was declared rather than the >> $x >> placeholders. Currently testing with postgresql-8.2-505.jdbc3.jar and >> this >> change doesn't seem to be in there. >> > > It has not made it into the driver yet because I haven't done the testing > against all our supported server versions yet. In any case it will not > appear in the 8.2 series release because it is a new feature and will > instead appear in the 8.3 release. > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > > -- View this message in context: http://www.nabble.com/getProcedureColumns-tf3147414.html#a11399288 Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.