pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Vidas Makauskas <v.makauskas@pzu.lt>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: No Primary Keys (pg7.4.2 on SLES9)
Date: Tue, 4 Apr 2006 16:34:11 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net> (raw)
In-Reply-To: <000301c656f8$cc3dd400$8400010a@pzu.lt>
References: <000301c656f8$cc3dd400$8400010a@pzu.lt>



On Mon, 3 Apr 2006, Vidas Makauskas wrote:

> I get error NO PRIMARY KEY from prs.moveToInsertRow();
>
> Postgres 7.4.2 on with /usr/share/pgsql/pg73b1jdbc3.jar
>
>  Statement st = pg.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
> ResultSet.CONCUR_UPDATABLE);
>  st.executeUpdate("CREATE TABLE public.testas (loid integer PRIMARY KEY)
> WITHOUT OIDS");
>  ResultSet prs = st.executeQuery("SELECT p.* FROM public.testas p");
> prs.moveToInsertRow();

Older JDBC drivers do not support schema qualified table names for 
updatable result sets.  Try a newer version:

http://jdbc.postgresql.org/download.html

Kris Jurka



view thread (3+ messages)  latest in thread

Message-ID: <Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, v.makauskas@pzu.lt
  Subject: Re: No Primary Keys (pg7.4.2 on SLES9)
  In-Reply-To: <Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net>
  References: <000301c656f8$cc3dd400$8400010a@pzu.lt> <Pine.BSO.4.63.0604041624460.13705@leary2.csoft.net>

* 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