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 0B4249FA1A8 for ; Fri, 2 Jun 2006 12:47:22 -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 88415-01 for ; Fri, 2 Jun 2006 12:47:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id A3FFD9FA040 for ; Fri, 2 Jun 2006 12:47:11 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.169]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FmBrg-00067q-Sw; Sat, 03 Jun 2006 03:47:09 +1200 Message-ID: <44805D7E.4010706@opencloud.com> Date: Sat, 03 Jun 2006 00:47:10 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "rcolmegna@tiscali.it" CC: pgsql-jdbc@postgresql.org Subject: Re: CachedRowSet insertion problem with serial PK References: <24609936.1149259738344.JavaMail.root@ps21> In-Reply-To: <24609936.1149259738344.JavaMail.root@ps21> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/9 X-Sequence-Number: 15289 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(); > > but I obtain this error: > "SQLException: Failed on insert row" (generated from the insertRow() > line). Can you work out what the real exception thrown by the driver is? It is hard to diagnose this without knowing what is happening at the low-level JDBC API level. -O