X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AF8439FA3A6 for ; Sat, 3 Jun 2006 04:28:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 27926-07 for ; Sat, 3 Jun 2006 04:27:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mrqout1.tiscali.it (mrqout1-sorbs.tiscali.it [195.130.225.22]) by postgresql.org (Postfix) with ESMTP id 7066D9FA2E6 for ; Sat, 3 Jun 2006 04:27:51 -0300 (ADT) Received: from 10.39.115.26 by mrq-1 with esmtp (Exim) id 1FmQXz-0005nK-Vk; Sat, 03 Jun 2006 09:27:48 +0200 Received: from ps22 (10.39.75.92) by mail-6.mail.tiscali.sys (7.2.066.3) id 4417DC51000F425A; Sat, 3 Jun 2006 09:27:47 +0200 Message-ID: <31906140.1149319667718.JavaMail.root@ps22> Date: Sat, 3 Jun 2006 09:27:47 +0200 (CEST) From: "rcolmegna@tiscali.it" Reply-To: "rcolmegna@tiscali.it" To: oliver@opencloud.com Subject: R: Re: CachedRowSet insertion problem with serial PK Cc: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable xOriginalSenderIP: 151.38.135.18 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/12 X-Sequence-Number: 15292 Hi, I noticed that I have committed an error: the excpetion isn't raised=20 from JDBC driver but from CacheRowSetImpl. I will send a post to sun-maillist. Exception in thread "main" java.sql.SQLException: Failed on insert row at com.sun.rowset.CachedRowSetImpl.insertRow(CachedRowSetImpl. java:5440) at CachedRowSetDemo.test(CachedRowSetDemo.java:78) at CachedRowSetDemo.main(CachedRowSetDemo.java:90) TIA Roberto Colmegna ---- Messaggio originale ---- Data: Fri Jun 02 17:47:10 CEST 2006 Da: Oliver Jowett A: rcolmegna@tiscali.it Cc: pgsql-jdbc@postgresql.org Ccn:=20 Ogg.: Re: [JDBC] CachedRowSet insertion problem with serial PK rcolmegna@tiscali.it wrote: > CachedRowSet rs; > ... > rs.setCommand("select id,info from a WHERE id rs.setInt(1, 10); > ... > rs.moveToInsertRow(); > rs.setString(2, "zzzz2"); > rs.insertRow(); >=20 > but I obtain this error: > "SQLException: Failed on insert row" (generated from the insertRow() =20 > line). Can you work out what the real exception thrown by the driver is? It=20 is=20 hard to diagnose this without knowing what is happening at the low- level=20 JDBC API level. -O ---------------------------(end of broadcast) --------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org =09=09 La gara pi=C3=B9 entusiasmante dell'anno!=20 Gioca e corri alla velocit=C3=A0 della luce sui 18 circuiti di Intel Speed = Contest 2006! I pi=C3=B9 bravi vincono Notebook Sony VAIO, iPod da 60 GB e altro ancora..= .=20 Sfida gli amici! http://intelspeedcontest2006.tiscali.it/=20 =09