When using PreparedStatement.setObject
(Timestamp), the date in database in off by a little more
than a second.
Found bug in PreparedStatement_base.java. In
setObject method, need to check instanceof
java.sql.Timestamp before checking instanceof
java.sql.Date or Timestamp is casted into a
java.sql.Date and nanos aren't regarded.
Log in to post a comment.