diff --git a/src/main/java/com/jcabi/jdbc/PrepareArgs.java b/src/main/java/com/jcabi/jdbc/PrepareArgs.java index 99138cd..1660762 100644 --- a/src/main/java/com/jcabi/jdbc/PrepareArgs.java +++ b/src/main/java/com/jcabi/jdbc/PrepareArgs.java @@ -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; }