Skip to content

Commit

Permalink
Add stripping to prevent integer errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjagruenheid committed Sep 22, 2023
1 parent 3211f75 commit 4bee191
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public PreparedStatement getStatement(Connection conn, List<Object> params) thro
break;
} else{
try {
stmt.setObject(i + 1, params.get(i), Integer.parseInt(Types.class.getDeclaredField(paramsTypes[i]).get(null).toString()));
stmt.setObject(i + 1, params.get(i), Integer.parseInt(Types.class.getDeclaredField(paramsTypes[i]).get(null).toString().strip()));
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(
Expand Down

0 comments on commit 4bee191

Please sign in to comment.