Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-612

Add documentation warning against the use of duplicate key names

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      JAVA-3216 Fixed 3.12.0
      JAVA-3547 Fixed 4.0.0
      PYTHON-1758 Won't Do
      PHPC-1342 Fixed 1.13.0
      CXX-1745 Backlog
      MOTOR-319 Backlog
      CSHARP-2532 Done
      GODRIVER-852 Done 1.5.2
      RUBY-1748 Fixed bson-4.11.0
      CDRIVER-2982 Fixed 1.24.0
      RUST-174 Backlog
      SWIFT-490 Won't Do
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion JAVA-3216 Fixed 3.12.0 JAVA-3547 Fixed 4.0.0 PYTHON-1758 Won't Do PHPC-1342 Fixed 1.13.0 CXX-1745 Backlog MOTOR-319 Backlog CSHARP-2532 Done GODRIVER-852 Done 1.5.2 RUBY-1748 Fixed bson-4.11.0 CDRIVER-2982 Fixed 1.24.0 RUST-174 Backlog SWIFT-490 Won't Do

      Drivers that provide low level control over the creation of BSON (for example, the BSON writer in the Java and other drivers) MUST warn against the use of duplicate key names in documentation.

      The documentation MUST mention that the server's behavior related to duplicate key names is undefined and MUST document what the driver does when a document with duplicate key names is decoded (first one wins, last one wins, etc.) and that storing such a document will cause the other value(s) to be lost.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: