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 62690529FD for ; Tue, 9 Aug 2005 18:10:37 -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 82831-04 for ; Tue, 9 Aug 2005 21:10:34 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id B1F1452806 for ; Tue, 9 Aug 2005 18:10:32 -0300 (ADT) Received: (qmail 4353 invoked from network); 9 Aug 2005 21:10:35 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 9 Aug 2005 21:10:35 -0000 In-Reply-To: <224f323405080913385a38ece0@mail.gmail.com> References: <224f323405080913385a38ece0@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Missing functionality in ResultSetMetaData ? Date: Tue, 9 Aug 2005 17:10:33 -0400 To: Thomas Dudziak X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/46 X-Sequence-Number: 13615 Check the archives, there's no way for us to get the tables. The problem is that the server doesn't tell us what the table is that the column came from consider select a as newcol from foo; we don't get the column a back from the server. Dave On 9-Aug-05, at 4:38 PM, Thomas Dudziak wrote: > Hi, > > I'm trying to extract the source tables from a result set for a > arbitrary select query. For this I use the > > ResultSetMetaData.getTableName(int columnIndex) > > method. However with the postgresql-8.0-311.jdbc3.jar driver against a > PostgreSQL 8.0.1, I never get any table names, regardless of whether > the query is a straight SELECT * FROM simpletable or a complicated > query using multiple joins. > Are there plans to incorporate this functionality, or perhaps a driver > version that already supports this ? > > regards, > Tom > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that > your > message can get through to the mailing list cleanly > >