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 06979D1B183 for ; Tue, 3 Aug 2004 03:00:24 -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 06564-04 for ; Tue, 3 Aug 2004 06:00:13 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 1D36AD1B16E for ; Tue, 3 Aug 2004 03:00:09 -0300 (ADT) Received: (qmail 18851 invoked by uid 1112); 3 Aug 2004 06:00:09 -0000 Date: Tue, 3 Aug 2004 01:00:08 -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: <410EDF4D.6060808@opencloud.com> Message-ID: References: <41086EF8.7010101@opencloud.com> <410ED4E6.8020806@opencloud.com> <410EDF4D.6060808@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/22 X-Sequence-Number: 10744 On Tue, 3 Aug 2004, Oliver Jowett wrote: > As for existing implementations, a quick google turned this up: > > http://publib.boulder.ibm.com/html/as400/v4r5/ic2924/index.htm?info/db2/rbafymst69.htm > > which seems to indicate that DB2 has a column display label (via LABEL > ON COLUMN) in addition to column name & column comment. > This is certainly interesting. OK, I'm pretty much convinced, but would like to go over some issues with regard to getTableName and getSchemaName. I believe we agree that for consistency's sake we should return the table alias (if any) in getTableName. How could we do that, and what would the purpose be? At the moment there is no way to even detect that a column's source has been aliased and if you could what would a user do with that alias? The inability to detect an alias means that we cannot report the base table and schema names only in the non-aliased case. Is it worth creating pg specific getBaseXXXName functions for table/schema while the official ones go unused (return "" always) solely for consistency? Kris Juraka