There is allways the wasNull() method call. If the converted value returns 0
this can allways be cahnged to some different value if the value 'wasNull'.
But unfortunatelly this value has to be fetched first :)
Rein
"Nathan Zumwalt" <na*****@hotmail.com> wrote in message
news:52**************************@posting.google.c om...
It looks like all your can do is test for null by using the
getObject("columnName") method. According to the JavaDoc, this will
return null if there isn't a value in the field. I'm surprised there
isn't an isNull("columnName") method.
-Nathan
Di***********@hotmail.com (DiggidyMack69) wrote in message
news:<c8*************************@posting.google.c om>...
I have a sql resultset called columns. When I convert an integer
column to string that is a NULL it converts to zero. How can I get it
to convert to null??
String x;
x = Integer.toString(columns.getInt("Integercolumnname "));
if x is null it will be converted to '0'. I want it converted to
null.