From: Kris Jurka <books@ejurka.com>
To: Xavier Poinsard <xpoinsard@free.fr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Patch adding empty missing columns for getTables
Date: Tue, 18 Apr 2006 11:18:38 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604181101060.6623@leary2.csoft.net> (raw)
In-Reply-To: <444503FB.30204@free.fr>
References: <444503FB.30204@free.fr>
On Tue, 18 Apr 2006, Xavier Poinsard wrote:
> The attached patch add empty columns to the resultset returned by
> AbstractJdbc2MetaData.getTables().
> According to JAVA 1.5 javadoc, it should return 10 columns and we are
> currently returning only 5.
There are a number of differences in the metadata returned between JDBC2
and JDBC3. The correct place to make this change would be to
AbstractJdbc3DatabaseMetaData so that it overrides the JDBC3 behavior, but
leaves the JDBC2 format unchanged. This should be done for all the places
that have changed in JDBC3, see section 7.8 of the JDBC3 spec.
> Maybe someone familiar with the system tables could modify the query to
> return the expected values. With this patch, at least (and it is
> allowed) null columns are returned and we don't get array indices
> exceptions.
>
I'm not particularly excited about filling some unknown columns with NULL
values. I think some attempt should be made to understand what these
columns are supposed to be, my quick reading of the javadoc yields no
hints though. Even if you don't know the system catalogs well we can help
you with that if you tell us what you're looking for.
Kris Jurka
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: books@ejurka.com, xpoinsard@free.fr
Subject: Re: Patch adding empty missing columns for getTables
In-Reply-To: <Pine.BSO.4.63.0604181101060.6623@leary2.csoft.net>
References: <444503FB.30204@free.fr> <Pine.BSO.4.63.0604181101060.6623@leary2.csoft.net>
* 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