JDBC updateNull method returns null pointer exception

From: "Sean Gates" <sean(dot)gates(at)signiant(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC updateNull method returns null pointer exception
Date: 2002-08-30 18:44:41
Message-ID: E6F241DAF915E24F9E34757342EE3E22020071@ottas09a.ott.signiant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I've been working on some application code (written in C++ and calling
JDBC methods via JNI) that makes extensive use of updateable result
sets. I've done a couple of driver builds from the most current versions
of the source from the CVS repository and everything seems to work quite
well with one exception: calls to the 'updateNull' method(s) generate
java.lang.NullPointerException faults. I have only a basic working
knowledge of the Java language but the likely culprit seems to be the
'null' value passed to the 'put' method of the 'updateValues' Hashtable
object.

My question is: What should the actual implementation be to replace this
stub? Does anyone have any suggestions regarding what object should
really be instantiated to map to a NULL table column value for the
parameterized SQL statement constructed in the 'updateRow' method?

I'm an experienced systems programmer but relative novice in this
particular area (in fact, this is my first ever post to a public
newsgroup ... it's kind of exciting). I'm hoping one of the recent JDBC
developers/maintainers will be able to help with this issue.

Thanks in advance,

Sean T. Gates
Signiant Corporation

Browse pgsql-jdbc by date

  From Date Subject
Next Message Harrison 2002-08-30 19:26:30 Re: 7.0 - 7.2 upgrade, org.postgresql.Driver Class not found
Previous Message Dave Cramer 2002-08-30 18:10:12 Re: Updateable ResultSet