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 B4070D1B260 for ; Mon, 2 Aug 2004 21:31:22 -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 95138-02 for ; Tue, 3 Aug 2004 00:31:21 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 41D21D1B1F8 for ; Mon, 2 Aug 2004 21:31:17 -0300 (ADT) Received: (qmail 2145 invoked by uid 1112); 3 Aug 2004 00:31:20 -0000 Date: Mon, 2 Aug 2004 19:31:20 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: Mike Martin , pgsql-jdbc@postgresql.org Subject: Re: Wrong column names in ResultSetMetaData In-Reply-To: <410ED4E6.8020806@opencloud.com> Message-ID: References: <41086EF8.7010101@opencloud.com> <410ED4E6.8020806@opencloud.com> 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: 200408/18 X-Sequence-Number: 10740 On Tue, 3 Aug 2004, Oliver Jowett wrote: > RSMD.getColumnLabel() returns the column alias, or maybe something > like the column's comment (can you COMMENT ON columns?) later. This is my major beef with the argument, what do you do for getColumnLabel? Returning the column's comment (which you can do) isn't the right thing either. I've got comments running to paragraph length describing some of the more obscure columns in my databases. No other driver in Mike's list showed an implementation of this different from getColumnName, so what's the point? The spec authors must have had some existing implementation to inspire this feature. The argument that getColumnLabel and getColumnName should do the exact same thing just seems wrong to me. Kris Jurka