Advertisement

04.18.2008 at 06:53AM PDT, ID: 23334140
[x]
Attachment Details

Does autoboxing affect JDBC?

Asked by BrianMc1958 in Java Programming Language

Dear Experts,

This statement is returning zero to temp, when the db underlying value "myField"  is null:

Integer temp = rs.getInt("myField");

The same statement used to return null into temp.

My first guess is that when I went to Java 1.5 to get autoboxing, it had this unintended consequence.  Is that right?  If so, how do I fix it?  (If not, how do I fix it anyway?)

I'm under major pressure here, so any help would be greatly appreciated.

Thanks!
BrianMc1958Start Free Trial
[+][-]04.18.2008 at 06:54AM PDT, ID: 21385741

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 06:58AM PDT, ID: 21385780

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.18.2008 at 07:04AM PDT, ID: 21385832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 07:06AM PDT, ID: 21385853

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.18.2008 at 07:10AM PDT, ID: 21385890

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.18.2008 at 07:18AM PDT, ID: 21385977

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 08:11AM PDT, ID: 21386481

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.18.2008 at 08:11AM PDT, ID: 21386488

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628