Re: java.lang.NullPointerException while updating datetime field



I have already tried it with executeUpdate() method... same outcome.

can you tell me how i can use preparedstatement for updating my data.
can i use a preparedstatement object after i create a resultset. let me
know.

thanks for your help.


joeNOSPAM@xxxxxxx wrote:
The NullPointerException you're getting is a pure simple
ridiculous driver bug. It's nothing to do with your code.

However, if you stick to the simplest JDBC, maybe things
will just work:

Don't use result sets to do updates. Just try a simple
statement:

stmt.executeUpdate("update RATE_GENERAL set RATE_EXP_DATE = ...);

or use a prepared statement and setTimestamp();

The simple stuff is/was tested better than the later
stuff.
Joe

.



Relevant Pages