Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add fallback to setObject(int, Object) for Number (#812)
Add a fallback to the PgPreparedStatement.setObject(int, Object) method which handles Number types. This allows support for BigInteger and similar types (f.e. AtomicLong) which are not explicitly mentioned by JDBC. This fallback operates by invoking toString() on the Number, which is the same method used by setBigDecimal(int, BigDecimal). Also, setBigDecimal(int, BigDecimal) does now invoke setNumber(int, Number) because they work the same way. The tracking bug is #810.
- Loading branch information
Showing with 74 additions and 6 deletions.