Re: Primary Key Error Updating Rows in ResultSet - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Primary Key Error Updating Rows in ResultSet
Date
Msg-id Pine.BSO.4.56.0411300109300.10837@leary.csoft.net
Whole thread Raw
In response to Primary Key Error Updating Rows in ResultSet  (Peter Smith <smithp@internode.on.net>)
List 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 by date:

Previous
From: Peter Smith
Date:
Subject: Primary Key Error Updating Rows in ResultSet
Next
From: Kris Jurka
Date:
Subject: Re: Translation update: pt_BR