From: Paul Thomas <paul@tmsl.demon.co.uk>
To: pgsql-sql @ postgresql . org <pgsql-sql@postgresql.org>
Subject: Re: [JDBC] Insert Row to ResultSet problem....java.sql.SQLException: No Primary Keys
Date: Mon, 22 Dec 2003 23:50:29 +0000
Message-ID: <20031222235029.A27585@bacon> (raw)
In-Reply-To: <621ddc9b.0312160724.6c6955db@posting.google.com>
References: <621ddc9b.0312160724.6c6955db@posting.google.com>
On 16/12/2003 15:24 Jason L. van Brackel wrote:
> [snip]
> ..... this is where I get this exception
> java.sql.SQLException: No Primary Keys
~~~~~~~~~~~~~~~
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.isUpdateable(AbstractJdbc2ResultSet.java:1363)
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.moveToInsertRow(AbstractJdbc2ResultSet.java:697)
> at
> com.cimconsultants.EFRMigration.MigrationUtil.main(MigrationUtil.java:62)
> [snip]
> I'm experienced with Java, but very new to JDBC and PostgreSQL. I'm
> using the JDK 1.4, PostgreSQL 7.4, and the binary pg74jdbc3.jar
> driver.
A total shot in the dark but do you have a primary key on the table?
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: paul@tmsl.demon.co.uk
Subject: Re: [JDBC] Insert Row to ResultSet problem....java.sql.SQLException: No Primary Keys
In-Reply-To: <20031222235029.A27585@bacon>
* 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