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

improper application of modifiers with numerically equivalent string field names

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
    • ALL

      > c.drop()
      true
      > c.save( {'1':{},'01':{}} );
      > c.update( {}, {$set:{'1.b':1,'1.c':2}} )
      > c.find()
      { "_id" : ObjectId("4f1fb41dfb44be527d9e51b4"), "1" :

      { "b" : 1, "c" : 2 }

      , "01" :

      { "b" : 1, "c" : 2 }

      }

      > c.drop()
      true
      > c.save( {'1':{},'01':{}} );
      > c.update( {}, {$set:{'1.b':1,'01.c':2}} )
      > c.find()
      { "_id" : ObjectId("4f1fb477fb44be527d9e51b5"), "1" : { "b" : 1, "" :

      { "b" : 1, "c" : 2 }

      }, "01" :

      { "b" : 1, "c" : 2 }

      }

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: