Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1515

Extended JSON $numberDouble uses incorrect value for NaN

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.3.0
    • Component/s: JSON & ExtJSON
    • Labels:
      None

      Given the following input:

      {"":{"$numberDouble":"NaN"}}
      

      The driver converts this to Go's NaN value, which includes a payload:

      0f0000000100010000000000f87f00
      

      Per the BSON corpus, it should not include a payload, and the output should have been this:

      0f0000000100000000000000f87f00
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: