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 F3D7FD1B457 for ; Thu, 29 Jul 2004 18:41:59 -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 81806-05 for ; Thu, 29 Jul 2004 21:41:51 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 18A32D1B3B2 for ; Thu, 29 Jul 2004 18:41:48 -0300 (ADT) Received: (qmail 31839 invoked by uid 1112); 29 Jul 2004 21:41:49 -0000 Date: Thu, 29 Jul 2004 16:41:49 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Mike Martin Cc: pgsql-jdbc@postgresql.org Subject: Re: Wrong column names in ResultSetMetaData In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/326 X-Sequence-Number: 10710 On Thu, 29 Jul 2004, Mike Martin wrote: > 2. Every other JDBC driver I'm familiar with behaves that way > (with the exception, I hear, of MimerSQL, which confuses > getColumnLabel() with SQL alias the way our new code does). What do they return for getColumnLabel()? Previously we returned the same value for both methods simply because we couldn't implement getColumnName as we do now. If they all return the alias in getColumnLabel that would be telling. > I'm not clear why a JDBC client would want or need to know the > "underlying" column name, if there even is one. I can see why > the driver might need to know that internally for purposes of > updateability but that's something different. > To allow client software to do the updates or allow the user to navigate from a query result column to the base table or to/through foreign keys on it. There could be a number of uses. Kris Jurka