From 24411263b834c79a037a242b1d4fbc8bc7b26d21 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Nov 2006 17:13:55 +0000 Subject: [PATCH] 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. --- src/java/com/samskivert/jdbc/depot/FieldMarshaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/FieldMarshaller.java b/src/java/com/samskivert/jdbc/depot/FieldMarshaller.java index 59d0452..9b0a73a 100644 --- a/src/java/com/samskivert/jdbc/depot/FieldMarshaller.java +++ b/src/java/com/samskivert/jdbc/depot/FieldMarshaller.java @@ -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); }