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

$inc not transformed to $set if it creates a field

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.3.4
    • Replication
    • None

    Description

      > db.c.remove({_id:0})
      > db.c.insert({_id:0})
      > db.c.update(

      {"_id" : 0}

      , {'$inc': {'z':1}})

      { "ts" :

      { "t" : 1268077684000, "i" : 1 }

      , "op" : "u", "ns" : "test.c", "o2" :

      { "_id" : 0 }

      , "o" : { "$inc" :

      { "z" : 1 }

      } }

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: