From b055a2a49335c78fdc754e38a7e8ab863b2a5515 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 4 Aug 2011 17:58:22 -0400 Subject: BLOB support (issue 1) and Enum support (issue 2). Documentation. --- src/com/iciql/Query.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/iciql/Query.java') diff --git a/src/com/iciql/Query.java b/src/com/iciql/Query.java index 97e143b..d9dc84f 100644 --- a/src/com/iciql/Query.java +++ b/src/com/iciql/Query.java @@ -18,6 +18,7 @@ package com.iciql; import java.lang.reflect.Field; +import java.sql.Blob; import java.sql.Clob; import java.sql.ResultSet; import java.sql.SQLException; @@ -223,6 +224,8 @@ public class Query { Object o = rs.getObject(1); if (Clob.class.isAssignableFrom(o.getClass())) { value = (X) Utils.convert(o, String.class); + } else if (Blob.class.isAssignableFrom(o.getClass())) { + value = (X) Utils.convert(o, byte[].class); } else { value = (X) o; } -- cgit v1.2.3