Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-502

document not being created when update issued with $setOnInsert

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.5
    • Component/s: None
    • Labels:
    • Environment:
      Linux, mongo 2.4.1

      when issuing something like

      collection.update(
      {'pid': 1, 'site': u'5159d5ae05fae06c65de3c1f', 'vid': '5159d5e405fae06c8158e1d7', 'sid': u'1364842449086334'},
      
      {'$set': {'ip': u'22.219.220.161'}, '$setOnInsert': {'card': 0}, '$push': {'secs': 0, 'ev': u'Play', 'ts': 1364842449}}, upsert=True
      )
      

      no new document will appear in the collection, removing $setOnInsert will do.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            eka Esteban Feldman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: