Thread: Fwd: Problem with deleting row

Fwd: Problem with deleting row

From
Syed Abdul Nasir
Date:

I am using postgresql-8.0.310.jdbc2ee.jar. when I am trying to delete an existing row from resultset, I am getting this exception:
java.lang.NullPointerException
    at org.postgresql.core.v3.SimpleQuery.toString(SimpleQuery.java:40)
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.parseQuery(AbstractJdbc2ResultSet.java:1656)
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.isUpdateable(AbstractJdbc2ResultSet.java:1516)
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkUpdateable(AbstractJdbc2ResultSet.java:2427)
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.deleteRow(AbstractJdbc2ResultSet.java:694)
 
Is this a known bug? If this is fixed in some jar then please let me know from where I can get the jar.
 
Thanks,
-N


Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: Fwd: Problem with deleting row

From
Kris Jurka
Date:

On Wed, 9 Feb 2005, Syed Abdul Nasir wrote:

> I am using postgresql-8.0.310.jdbc2ee.jar. when I am trying to delete an
> existing row from resultset, I am getting this exception:
> java.lang.NullPointerException
>     at org.postgresql.core.v3.SimpleQuery.toString(SimpleQuery.java:40)

Are you sure you are using 8.0-310 because this certainly looks fixed by
this cvs log entry which went into the 310 release.

Kris Jurka

revision 1.6
date: 2005/01/27 20:59:02;  author: oliver;  state: Exp;  lines: +5 -2
Bugfix and testcase for NPE when using an updateable resultset obtained
from a PreparedStatement on a v3 connection. Per report from Martin
Keller.