Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id DB9759FB414 for ; Wed, 31 Jan 2007 17:21:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 91081-10 for ; Wed, 31 Jan 2007 17:21:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E5FE29FB222 for ; Wed, 31 Jan 2007 17:21:12 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by svr4.postgresql.org (Postfix) with ESMTP id 10A635AFBC6 for ; Wed, 31 Jan 2007 21:21:08 +0000 (GMT) Received: by mail63.csoft.net (Postfix, from userid 1112) id D8F65F5A9; Wed, 31 Jan 2007 16:20:52 -0500 (EST) Date: Wed, 31 Jan 2007 16:20:52 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Jeffrey Cox Cc: pgsql-jdbc@postgresql.org Subject: Re: getProcedureColumns In-Reply-To: <1C85230A-C17D-4601-B84E-6F43176C5D6D@gmail.com> Message-ID: References: <1C85230A-C17D-4601-B84E-6F43176C5D6D@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/189 X-Sequence-Number: 16554 On Wed, 31 Jan 2007, Jeffrey Cox wrote: > I been working with metadata on stored procedures and discovered that I > can't get parameter names via getProcedureColumns. So i checked out the > source and took a look at the method. Seems that for column names, a $ is > appended to the arg type count. I guess I don't know if there is a reason > that the actual parameter names are not used, or its just low on the TODO > list. I went ahead and updated the method return column names as stored in > procargnames of pg_catalog.pg_proc. I have attached a patch. It just hasn't been updated in a while. > I honestly don't know if this is the correct mechanism to handle this (I > poped into #postgres and was told to attach a patch to an email to this > list), so just point me in the right direction if need be (either on how to > submit the patch, or why making this change is stupid). > This is exactly the place to send it. Any chance we can also convince you to add a test case and fix COLUMN_TYPE for out parameters? Kris Jurka