Need to get that column as a byte so that it is boxed into a Byte otherwise

we'll end up with an Integer which reflection doesn't convert to a Byte when
coercing the method parameters.
This commit is contained in:
Michael Bayne
2006-11-21 17:13:55 +00:00
parent 2ab575aa05
commit 24411263b8
@@ -420,7 +420,7 @@ public abstract class FieldMarshaller
public void getValue (ResultSet rs, Object po)
throws SQLException, IllegalAccessException {
try {
_field.set(po, _factmeth.invoke(null, rs.getInt(getColumnName())));
_field.set(po, _factmeth.invoke(null, rs.getByte(getColumnName())));
} catch (InvocationTargetException ite) {
throw new RuntimeException(ite);
}