Re: pg JDBC driver feature question

From: Kris Jurka <books(at)ejurka(dot)com>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: Erik Price <eprice(at)ptc(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: pg JDBC driver feature question
Date: 2003-06-16 18:53:29
Message-ID: Pine.LNX.4.33.0306161445480.20421-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> > 1. The DatabaseMetaData.supportsIntegrityEnhancement method returns
> > false for me using the pg73jdbc2ee.jar driver. Perhaps I just don't
> > fully understand what this method actually means, but I would have
> > expected it to return true, since PostgreSQL (the database) supports
> > referential integrity constraints? Or am I confused about two different
> > things.
>
> If IntegrityEnhancementFacility = integrity constraints then yes the
> driver should return true. But I really don't know what
> IntegretyEnhancementFacility means. It isn't discussed in either the
> jdbc javadoc or the jdbc specs. It is entirely possible that it implies
> a lot more than just plain integrity constraints in which case returning
> false for this method may be the correct thing to do.

Looking at the javadoc I can't see anything else about integrity
constraints, so I'd have to believe that this is what they mean. It seems
if this was for something above and beyond regular constraints they'd have
something for the base level as well. I think we should return true.

> > 2. Is the DatabaseMetaData.getExportedKeys method fully implemented in
> > the Driver? Specifically, I would like to identify all of the foreign
> > key tables that depend on a specified table's primary key using the
> > FKTABLE_NAME column.

It works for foreign keys which reference a primary key, but does not work
for columns referencing a unique index.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sean Devlin 2003-06-16 23:22:32 ResultSet implementation
Previous Message Erik Price 2003-06-16 15:55:33 Re: pg JDBC driver feature question