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

Inserting (as update with upset) DBRef in _id.

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: