Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3158

Inserting (as update with upset) DBRef in _id.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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

      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 Unassigned
            Reporter:
            matew12 Matew
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: