From: Oliver Jowett <oliver@opencloud.com>
To: rcolmegna@tiscali.it <rcolmegna@tiscali.it>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: CachedRowSet insertion problem with serial PK
Date: Sat, 03 Jun 2006 00:47:10 +0900
Message-ID: <44805D7E.4010706@opencloud.com> (raw)
In-Reply-To: <24609936.1149259738344.JavaMail.root@ps21>
References: <24609936.1149259738344.JavaMail.root@ps21>
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
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: oliver@opencloud.com, rcolmegna@tiscali.it
Subject: Re: CachedRowSet insertion problem with serial PK
In-Reply-To: <44805D7E.4010706@opencloud.com>
References: <24609936.1149259738344.JavaMail.root@ps21> <44805D7E.4010706@opencloud.com>
* 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