You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JAVA-1741: In order to preserve backwards compatibility with the 2.x driver, encode instances of java.util.Date subclasses (in particular java.sql.Date and java.sql.Timestamp) as BSON dates.
Note: for java.sql.Timestamp in particular, this can result in information loss, as the nanos field is silently ignored
(it's acknowledged in the javadoc for Timestamp that the inheritance relationship between the two classes is a mistake).
Note: As this is only for backwards compatibility, support for encoding Date subclasses has only been added for DBObject, and not other containers like Document.
0 commit comments