@ -120,7 +120,7 @@ public class RowToObjectMapper<T> extends RowMapper {
if(!constructor.isAccessible())
constructor.setAccessible(true);
}catch(Throwablee1){
if(_columnCount!=1)// if column count is only 1, it might map directly to a type like a Long or something
if(_columnCount> 2)// if column count is 2 or less, it might map directly to a type like a Long or something, or be a map which does
thrownewMapperException("Exception when trying to get constructor for : "+returnTypeClass.getName()+" Must have default no-arg constructor or one that takes a single ResultSet.",e1);
@ -205,6 +205,23 @@ public class QueryMapperTest {
Assert.assertEquals(arrayMap.toArray(newMap[arrayMap.size()]),qm.toArrayMap("SELECT first_name, last_name FROM person WHERE person_no < 4",arrayMap.get(0).getClass(),String.class));