Inserting (as update with upset) DBRef in _id.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.8.0-rc2, 1.9.0
    • Component/s: Write Ops
    • Environment:
      Linux 2.6.38-9-generic #43-Ubuntu x86_64 GNU/Linux,
    • Linux
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.sessions.update({"_id": {$ref: "users", $id: "matew12"}}, {$push:{"sessions":ObjectId()}}, true);

      I try insert (as update) DBRef into _id, but it insert new ObjectId.

              Assignee:
              Unassigned
              Reporter:
              Matew
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: