From: Tiago Antao <tra_ejb@yahoo.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: DatabaseMetadata
Date: 17 Feb 2002 19:15:56 +0100
Message-ID: <1013968036.547.18.camel@lisboa> (raw)
Hi!
I am doing a project that involves the use of the DatabaseMetadata,
namely I need Foreign keys...
A few things that I have found:
1. PgSQL does not have FK meta-data available for foreign keys as they
are implemented with triggers
2. Accordingly the driver cannot supply meta-data (check eg,
DatabaseMetadata.getImportedKeys), which is correct, but...
3. getImportedKeys always returns a null, which very easely breaks any
JDBC code, as is very far way from what is expected
4. I think the best solution would be to return an empty ResultSet, or
at least raise a SQL Exception (I would favour the first).
5. I could volunteer to try to implement better return for these type of
functions (it seems to be easy), if you agree with my solution just say
and I will try to implement it.
I am stuck with Oracle because of this...
Best regards,
Tiago
PS - I have 7.1.3 source
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
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: tra_ejb@yahoo.com
Subject: Re: DatabaseMetadata
In-Reply-To: <1013968036.547.18.camel@lisboa>
References: <1013968036.547.18.camel@lisboa>
* 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