MutableDocument::addField: decide on duplicate field name support

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Pre-existing TODO in src/mongo/db/exec/document_value/document.h (addField method).

      addField currently allows duplicate field names but getField only returns the first. Decide what level of support is needed for duplicate fields. If duplicates are not allowed, consider removing this method or adding validation.

            Assignee:
            Unassigned
            Reporter:
            Catalin Sumanaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: