Re: Primary Key Error Updating Rows in ResultSet

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Primary Key Error Updating Rows in ResultSet
Дата
Msg-id Pine.BSO.4.56.0411300109300.10837@leary.csoft.net
обсуждение исходный текст
Ответ на Primary Key Error Updating Rows in ResultSet  (Peter Smith <smithp@internode.on.net>)
Список pgsql-jdbc

On Tue, 30 Nov 2004, Peter Smith wrote:

> I'm getting the error 'java.sql.SQLException: No Primary Keys' when
> trying to update a resultset based on a table with a primary key.
>

It is not enough to have a primary key on the table, you must also select
those columns in your ResultSet.  Further, the code to determine the table
in question isn't very good and is easily fooled.  What is your exact
SELECT statement and primary key definition?

Kris Jurka

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Primary Key Error Updating Rows in ResultSet
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Translation update: pt_BR