Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-258

The 1.0 and 1.1 versions of the C# driver write a different value to the database for DateTime.MaxValue

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.2
    • 1.0, 1.1
    • None
    • None
    • Fully Compatible

    Description

      Version 1.0 wrote a value of 253402300800000 for DateTime.MaxValue. Version 1.1 writes the correct value of 253402300799999.

      The problem is that existing DateTime.MaxValue values written with the 1.0 version can now not be read by the 1.1 version.

      There needs to be some kind of backward compatibility mode with existing data in the 1.1 version. It is probably OK if the 1.0 version doesn't correctly handle data written by the 1.1 version (comments?).

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: