Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-148

Produce error on duplicate keys at the same level

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      With this input file and mongoimport:

      { "_id" : 1, "_id" : "a" }
      { "_id" : 2, "_id" : "b" }
      { "_id" : 3, "_id" : "c" }
      { "_id" : 4, "_id" : "d" }
      

      Produces this in the database:

      ongoexport -d test -c dups
      connected to: 127.0.0.1
      { "_id" : 1, "_id" : "a" }
      { "_id" : 2, "_id" : "b" }
      { "_id" : 3, "_id" : "c" }
      { "_id" : 4, "_id" : "d" }
      

      Parser should probably catch this, or maybe a unique key contraint on the bson object.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: