X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id ACEC39FA159 for ; Mon, 12 Jun 2006 14:14:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 78183-04 for ; Mon, 12 Jun 2006 14:14:26 -0300 (ADT) X-Greylist: delayed 00:24:40.069648 by SQLgrey- Received: from ucsns.ucs.co.za (ucsns.ucs.co.za [196.23.43.2]) by postgresql.org (Postfix) with ESMTP id AC44D9FA3CD for ; Mon, 12 Jun 2006 14:14:27 -0300 (ADT) Received: from ucspost.ucs.co.za (ucspost.ucs.co.za [196.23.43.3]) by ucsns.ucs.co.za (Postfix) with ESMTP id 2FEFB2BD50 for ; Mon, 12 Jun 2006 18:49:42 +0200 (SAST) Received: from jhb.ucs.co.za (jhb.ucs.co.za [172.31.1.3]) by ucspost.ucs.co.za (Postfix) with ESMTP id 55F28DC21B for ; Mon, 12 Jun 2006 18:49:42 +0200 (SAST) Received: from svb.ucs.co.za (svb.ucs.co.za [172.31.1.148]) by jhb.ucs.co.za (Postfix) with ESMTP id 5CDC097D95 for ; Mon, 12 Jun 2006 18:49:42 +0200 (SAST) Date: Mon, 12 Jun 2006 18:49:42 +0200 From: Stef To: pgsql-jdbc@postgresql.org Subject: Column description in ResultSetMetaData Message-ID: <20060612184942.53866132@svb.ucs.co.za> X-Mailer: Sylpheed-Claws 2.2.0cvs70 (GTK+ 2.8.18; i686-pc-linux-gnu) Face: /9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gBIQ1JFQVRP UjogWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAgUXVhbGl0eSA9IDgwLCBTbW9v dGhpbmcgPSAwCv/bAEMABQMEBAQDBQQEBAUFBQYHDAgHBwcHDwsLCQwRDxISEQ8RERMWHBcT FBoVEREYIRgaHR0fHx8TFyIkIh4kHB4fHv/bAEMBBQUFBwYHDggIDh4UERQeHh4eHh4eHh4e Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHv/AABEIADAAMAMBIgAC EQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgQHAgMIAAH/xAAtEAABAwMDAwQBAwUAAAAA AAABAgMEAAURBhIhMUFRBxMiYZEUgcEVQlJTcf/EABgBAQEBAQEAAAAAAAAAAAAAAAQDAgAF /8QAJBEAAgIBAwMFAQAAAAAAAAAAAQIAAxEEEiEUMfATIkFhgeH/2gAMAwEAAhEDEQA/AOQb VDE+YzF95plTq9oW4SEgnpnFF71o6+2obpEFbjf+xj5pI85H80OtSQSSUbu9WhLvUu36LtM1 haXH5LhbVvyQNvXP30rd1b1orjkHiJWpdm4ynwgpOFDAz0PFZKcCXMtpASOgPNXto57T2q5C Yd0t0Ru4KGUb20qC8eCRTFcfTTT1207Jj/o2YryHVFqQwgJWk4A5x1GR0NDbUhThhOXTFhlT OZNyCBlIBr6kICgo8imXVWhL9YpCwYypcdJOHmAVDH2OopYwUgpIwfsUhXDDIkGBXgiT4kz2 mw2EYJ70z2Cc3OtTlhnuFppbgfjPYz7LoGOR3SRwfzQA2xtLFucbeW4ZadyhtxsIWUkA556A /vU2d7ds1FIjRlqW3HkLbQVkZIScc9qXk21emfyUWw4wY8ab0xqRqQFsuRPbZWh73W Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/28 X-Sequence-Number: 15308 Hi Is there any way to get a column's description (As defined using COMMENT ON [TABLE_NAME].COLUMN_NAME] IS ) and/or table name from the ResultSetMetaData or from the ResultSet, without actually having to parse the SQL string to figure out what tables and columns were used in the query. I would obviously only need this for real columns. i.e. not columns that had functions or concatenations performed on them. Can anyone think of how to do this? Kind Regards Stefan -- Confidentiality Notice: The above message and all attachments may contain privileged and confidential information intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination, copy or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the material from your computer. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the view of the entity transmitting the message. UCS Group Limited and all of its subsidiary companies hereby distances itself from and accepts no liability in respect of the unauthorized use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes