Skip to content

Commit

Permalink
Setting Object value in Prepared statement as default
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkot committed Nov 8, 2018
1 parent f12213b commit fda07ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jcabi/jdbc/PrepareArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void prepare(final PreparedStatement stmt) throws SQLException {
} else if (arg instanceof byte[]) {
stmt.setBytes(pos, byte[].class.cast(arg));
} else {
stmt.setString(pos, arg.toString());
stmt.setObject(pos, arg);
}
++pos;
}
Expand Down

0 comments on commit fda07ca

Please sign in to comment.