Re: java.lang.NullPointerException while updating datetime field
- From: "suhartha" <suhartha@xxxxxxxxx>
- Date: 10 Oct 2006 13:52:33 -0700
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
.
- References:
- java.lang.NullPointerException while updating datetime field
- From: suhartha
- Re: java.lang.NullPointerException while updating datetime field
- From: joeNOSPAM@xxxxxxx
- Re: java.lang.NullPointerException while updating datetime field
- From: suhartha
- Re: java.lang.NullPointerException while updating datetime field
- From: Arne Vajhøj
- Re: java.lang.NullPointerException while updating datetime field
- From: suhartha
- Re: java.lang.NullPointerException while updating datetime field
- From: joeNOSPAM@xxxxxxx
- Re: java.lang.NullPointerException while updating datetime field
- From: suhartha
- Re: java.lang.NullPointerException while updating datetime field
- From: joeNOSPAM@xxxxxxx
- java.lang.NullPointerException while updating datetime field
- Prev by Date: Re: java.lang.NullPointerException while updating datetime field
- Next by Date: Re: java.lang.NullPointerException while updating datetime field
- Previous by thread: Re: java.lang.NullPointerException while updating datetime field
- Next by thread: Re: java.lang.NullPointerException while updating datetime field
- Index(es):
Relevant Pages
|
|