deleteRow or updateRow after insertRow - Mailing list pgsql-jdbc

From jessica xingzc_he
Subject deleteRow or updateRow after insertRow
Date
Msg-id BAY24-F31DC8EA10052A0538BC2D09CC20@phx.gbl
Whole thread Raw
Responses Re: deleteRow or updateRow after insertRow
Re: deleteRow or updateRow after insertRow
List pgsql-jdbc
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



pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: how to create an object of java.sql.Array
Next
From: Ian Pilcher
Date:
Subject: Why IDENT doesn't work with JDBC