Skip to content

Commit

Permalink
Update ResultWrapper.java
Browse files Browse the repository at this point in the history
BigInteger supported fixed!
 by using: BigInteger.valueOf(rs.getLong(1));
  • Loading branch information
sky5454 committed Jan 9, 2021
1 parent ca363da commit d114b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/yu/myorm/core/dynproxy/ResultWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static Object convert(ResultSet rs, Class returnType) throws Exception {
} else if (returnType == java.util.Date.class) {

} else if (returnType == java.math.BigInteger.class) {
return rs.getLong(1);
return BigInteger.valueOf(rs.getLong(1));
} else if (returnType == LocalDate.class) {

} else if (returnType == LocalDateTime.class) {
Expand Down

0 comments on commit d114b1b

Please sign in to comment.