|
I use getString. Below is the code...it
outputs "wierd" with the index of the Long. When i used the same code on a
MS SQL Server 7 database there where no problems with the exact same db
structure!
----- Cut ---------
for ( int i = 0; i < cn; i++
)
{ try { tempS[i] = rs.getString ( i + 1 ); } catch (NullPointerException e) { System.out.println( "Wierd - " + (i + 1) ); tempS[i] = null; } } --------End Cut ---------
Do you think maybe the problem might be that in my
database the question field (i.e. the Long) is set to NOT NULL. Maybe the
driver makes some kind of optimisation where if it sees a field is NOT NULL is
doesn't consider that the data could be NULL (as it is in an outer join).
Maybe in your db its set to allows NULL? And hence maybe does some extra
checks???
It might be a problem specifically surrounding
outer joins in conjunction with non-nullable Longs?
Kind Regards
Bruce
|
- JDBC problem Bruce Lowe
- RE: JDBC problem Ivo Limmen
- RE: JDBC problem Bruce Lowe
- RE: JDBC problem Ivo Limmen
- Re: JDBC problem Bruce Lowe
- RE: JDBC problem Dittmar, Daniel
