From: Markus KARG <markus@headcrashing.eu>
To: 'Dave Cramer' <pg@fastcrypt.com>
To: 'Thomas Kellerer' <spam_eater@gmx.net>
Cc: 'List' <pgsql-jdbc@postgresql.org>
Cc: lance.andersen@oracle.com
Subject: Re: Release 1204 released
Date: Thu, 15 Oct 2015 23:17:44 +0200
Message-ID: <013401d1078e$ef0c82a0$cd2587e0$@eu> (raw)
In-Reply-To: <CADK3HHKzHSEzCwGDmOq2wGSfFtFmmq=YbSSOCs-9eMDXswOdzg@mail.gmail.com>
References: <CADK3HHJVEOhKLKPqVpmTXXuEpGUJ-_uEgRUYGQrHT-qhVn4nEg@mail.gmail.com>
<mvnqib$k89$1@ger.gmane.org>
<CADK3HHJGVMb9YgNDnP05f3RYiD5kVddgqETC28FFdkn=0wMdQA@mail.gmail.com>
<CADK3HHKzHSEzCwGDmOq2wGSfFtFmmq=YbSSOCs-9eMDXswOdzg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Obviously getColumns() is the only way to request the column definitions for a view, as there is no distinct such method explicitly for views. Sad but true, the field TABLE_TYPE is existing for getTables() and getTableTypes() but not for getColumns(). Maybe it would be a good idea to add it to the JDBC spec? Anyways, Thomas apparently is right. Any tool that wants to learn about the structure of a view has no other chance than using getColumns().
From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Dave Cramer
Sent: Donnerstag, 15. Oktober 2015 22:48
To: Thomas Kellerer
Cc: List; lance.andersen@oracle.com
Subject: Re: [JDBC] Release 1204 released
So I am looking at the API reference and no where does it say getColumns should return information about views.
That being said the fact that getTables returns the type of the table there may be some inference that it should ?
Lance, do you have some insight here ?
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 15 October 2015 at 07:10, Dave Cramer <pg@fastcrypt.com> wrote:
Yes, this looks like it needs to be reverted....
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 15 October 2015 at 05:10, Thomas Kellerer <spam_eater@gmx.net> wrote:
Dave Cramer schrieb am 09.10.2015 um 21:32:
> * fix: filter DatabaseMetaData.getColumns by tables PR #386 (0c95126)
Why was this done?
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: markus@headcrashing.eu, pg@fastcrypt.com, spam_eater@gmx.net, lance.andersen@oracle.com
Subject: Re: Release 1204 released
In-Reply-To: <013401d1078e$ef0c82a0$cd2587e0$@eu>
References: <CADK3HHJVEOhKLKPqVpmTXXuEpGUJ-_uEgRUYGQrHT-qhVn4nEg@mail.gmail.com> <mvnqib$k89$1@ger.gmane.org> <CADK3HHJGVMb9YgNDnP05f3RYiD5kVddgqETC28FFdkn=0wMdQA@mail.gmail.com> <CADK3HHKzHSEzCwGDmOq2wGSfFtFmmq=YbSSOCs-9eMDXswOdzg@mail.gmail.com> <013401d1078e$ef0c82a0$cd2587e0$@eu>
* 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