Hi all,
Came across a little bug the other day in the above method - previously
it got a Double and returned a Double object, which is a bit of a
problem if your client method is expecting a Float object....Obvious fix
is below:
*was *:
case Types.FLOAT :
{
double val = rs.getDouble(columnId);
if (!rs.wasNull())
result = new Double(val);
break;
}
*should be..*
case Types.FLOAT :
{
float val = rs.getFloat(columnId);
if (!rs.wasNull())
result = new Float(val);
break;
}
Cheers,
Chris
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>