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 9DA78D1B1EC for ; Mon, 2 Aug 2004 18:48:20 -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 39067-03 for ; Mon, 2 Aug 2004 21:48:15 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id DE119D1B184 for ; Mon, 2 Aug 2004 18:48:12 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i72LmCqb066578 for ; Mon, 2 Aug 2004 21:48:12 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i72LQ7pv063674 for pgsql-jdbc@postgresql.org; Mon, 2 Aug 2004 21:26:07 GMT From: "Mike Martin" X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: Wrong column names in ResultSetMetaData Date: Mon, 2 Aug 2004 16:24:08 -0500 Organization: Vieo, Inc. Lines: 38 Message-ID: References: <41086EF8.7010101@opencloud.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=PRIORITY_NO_NAME, UPPERCASE_25_50 X-Spam-Level: * X-Archive-Number: 200408/12 X-Sequence-Number: 10734 Kris Jurka wrote: > All the documentation you've pointed to is circumstancial at best. Come now, I think it's a little better than that. I guess I don't see as much ambiguity in "... the SQL AS clause can be used to provide names for computed columns" as you do. > You will need to find clear > documentation that this is incorrect or rally some other users to your > position. Then I call on all users using any of the following DBMS's to weigh in on this issue: SELECT PRICE AS ORIG_PRICE, PRICE + 1.00 AS PRICE FROM T getColumnName(1) getColumnName(2) DB/driver getColumnLabel(1) getColumnLabel(2) Cloudscape ORIG_PRICE ORIG_PRICE PRICE PRICE Firebird ORIG_PRICE ORIG_PRICE PRICE PRICE SQL Server (JTDS) ORIG_PRICE ORIG_PRICE PRICE PRICE SQL Server (MS) ORIG_PRICE ORIG_PRICE PRICE PRICE MySQL Connector/J ORIG_PRICE ORIG_PRICE PRICE PRICE Oracle thin ORIG_PRICE ORIG_PRICE PRICE PRICE PostgreSQL 7.4 orig_price orig_price price price PostgreSQL 7.5 price orig_price price "" Those are the drivers I have handy at the moment. I have a couple more I can try tomorrow. I invite others to post their results. Of course, this is probably the wrong NG for a cross-DB call to arms. :) But I should think that sample is large enough to cause worry about how much code is going to be broken. Mike