From 0498fc395fe8af7adbc4c99a33673e6f0a32a808 Mon Sep 17 00:00:00 2001 From: mdb 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. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1981 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- 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 59d04524..9b0a73af 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); }