Re: [BUGS] JDBC getImortedKeys() getExportedKeys() incorrect ON

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: [BUGS] JDBC getImortedKeys() getExportedKeys() incorrect ON
Дата
Msg-id Pine.LNX.4.33.0311030522150.29431-300000@leary.csoft.net
обсуждение исходный текст
Ответы Re: [BUGS] JDBC getImortedKeys() getExportedKeys()
Список pgsql-jdbc

On Fri, 15 Aug 2003, Richard Froud wrote:

> Please enter a FULL description of your problem:
> ------------------------------------------------
> When reading database metadata for foreign keys using the JDBC
> DatabaseMetaData.getImportedKeys() and DatabaseMetaData.getExportedKeys()
> methods the ON UPDATE rule is returned as the ON DELETE rule.  It is also
> correctly returned as the ON UPDATE rule.  Therefore there is no way to
> access the ON DELETE rule.  Consequenntly innaccurate representations of the
> database structure are obtained.

Here is a patch for this.  Additionally the on delete rule would not
return importedKeyRestrict because of a missing if statement.  Also an
addition to the test suite is attached.

Kris Jurka


Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: [BUGS] Bug #886: jdbc "update row" can mess up other columns
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Driver.acceptsURL(String) not working correctly