scalikejdbc/scalikejdbc — pull request #279 by ssowerby (2014-08-26 09:09:58+00:00)
Title: Fix boolean values when ResultSet.getObject returns a BigDecimal 

Oracle JDBC drivers can return a BigDecimal if Result.getObject is called on a numeric column. WrappedResultSet works OK when asking for a short/int/long value. But boolean values are always returned as true.

Adding an extra match case for Number to the boolean TypeBinder allows this to be handled nicely.

Using the same approach for int/short/long seems sensible rather than it going to the catch-all that does something like Integer.valueOf(value.toString).