From: Dave Cramer <pg@fastcrypt.com>
To: jessica xingzc_he <xingzc_he@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: deleteRow or updateRow after insertRow
Date: Thu, 18 Nov 2004 18:26:44 -0500
Message-ID: <419D2FB4.2030407@fastcrypt.com> (raw)
In-Reply-To: <BAY24-F31DC8EA10052A0538BC2D09CC20@phx.gbl>
References: <BAY24-F31DC8EA10052A0538BC2D09CC20@phx.gbl>
You may need to tell us a little more like what version of the driver
you are using ?
--dc--
jessica xingzc_he wrote:
> does anyone know why this happen?
>
> I do first:
> ResultSet.moveToInsertRow();
> ResultSet.update...(1, ...);
> ....
> rs.insertRow(); // a new row inserted into table
>
> but after that, I may move to some other row, say using
> Result.absolute(..) or so, and then
> 1. update
> ResultSet.update...(1, ...);
> ...
> ResultSet.updateRow(); // it does not update the corresponding row in
> the table, but also no
> exception thrown.
>
> 2. delete
> ResultSet.deleteRow(); // throws exception: Can not call deleteRow()
> when on insert row.
>
> anybody has any clue? thanks
>
> zhenchang
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
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: pg@fastcrypt.com, xingzc_he@hotmail.com
Subject: Re: deleteRow or updateRow after insertRow
In-Reply-To: <419D2FB4.2030407@fastcrypt.com>
References: <BAY24-F31DC8EA10052A0538BC2D09CC20@phx.gbl> <419D2FB4.2030407@fastcrypt.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