|
From: <tho...@tr...> - 2004-03-23 21:47:52
|
Found on minor quirk in the new JdbcTemlpate convenience methods. queryForInt returns the following confusing exception when the query returns the value NULL. org.springframework.dao.InvalidDataAccessApiUsageException: Result object (db-type="NUMBER" value="null") is of type [java.math.BigDecimal] and not of required type [java.lang.Number] We could either return 0 (like getInt() on the ResultSet would), or we could throw an exception with a different message. What do you think? I don't think this is a big deal, so I would not delay the release for 1.0. Thomas |