-
Notifications
You must be signed in to change notification settings - Fork 845
Commit
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
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
Robert Zenz
committed
Apr 14, 2017
1 parent
4ab5ccb
commit 1759c07
Showing
2 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters