X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 105FFD1B171 for ; Thu, 29 Jul 2004 06:27:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43379-01 for ; Thu, 29 Jul 2004 09:27:25 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 1C060D1B192 for ; Thu, 29 Jul 2004 06:27:21 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bq7C2-0003cn-00; Thu, 29 Jul 2004 21:27:18 +1200 Message-ID: <4108C2F1.7090805@opencloud.com> Date: Thu, 29 Jul 2004 21:27:13 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Wrong column names in ResultSetMetaData References: <41086EF8.7010101@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/320 X-Sequence-Number: 10704 Kris Jurka wrote: > This was done intentionally. Back in January I applied this patch: > > date: 2004/01/13 03:07:09; author: jurka; state: Exp; lines: +95 -31 > This patch is the culmination of Jan-Andre le Roux's work on enhancing > the ResultSetMetaData methods with new information available in the V3 > protocol. He wandered off of the verge of completing it and I've just > done some minor reworking and editing. > > This implements getSchemaName, getTableName, getColumnName, > getColumnLabel, and isNullable. I notice that the implementation of updateable resultsets use Field.getColumnLabel() when generating the UPDATE/SELECT/etc SQL. Presumably this should be using Field.getColumnName() given the current semantics? -O