From: Stef <svb@ucs.co.za>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Column description in ResultSetMetaData
Date: Mon, 12 Jun 2006 18:49:42 +0200
Message-ID: <20060612184942.53866132@svb.ucs.co.za> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: svb@ucs.co.za
Subject: Re: Column description in ResultSetMetaData
In-Reply-To: <20060612184942.53866132@svb.ucs.co.za>
References: <20060612184942.53866132@svb.ucs.co.za>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox