Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2064

Document change in behaviour of Java driver w.r.t the java.sql.Timestamp/java.sql.Date

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This is in regards to JAVA-1741. Please document change in behaviour of java driver (v3.0) in regards to inserting java.sql.Timestamp or java.sql.Date.

      jeff.yemin has said in a comment that:

      It's a mistake that the 2.x driver encodes instances of java.sql.Timestamp, as it silently drops the nanosecond field that's present in that class. We plan to document this backward compatibility break, and suggest that users prepare for this by converting Timestamp to Date, e.g. new Date(timestamp.getTime()).

            Assignee:
            Unassigned Unassigned
            Reporter:
            ankit.kakkar@mongodb.com Ankit Kakkar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: