From: | Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk> |
---|---|
To: | "pgsql-sql (at) postgresql (dot) org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: [JDBC] Insert Row to ResultSet problem....java.sql.SQLException: No Primary Keys |
Date: | 2003-12-22 23:50:29 |
Message-ID: | 20031222235029.A27585@bacon |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-sql |
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 |
+------------------------------+---------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Yann Calderara | 2003-12-22 23:59:55 | jdbc connection - UnknownHostException |
Previous Message | Dave Cramer | 2003-12-22 21:28:27 | Re: Newbie question |
From | Date | Subject | |
---|---|---|---|
Next Message | A.Bhuvaneswaran | 2003-12-23 05:22:14 | Re: |
Previous Message | Tom Lane | 2003-12-22 23:07:02 | Re: SQL Optimization |