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

arrays don't match themselves

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.2
    • Affects Version/s: None
    • Component/s: None

      I'm not sure if this is exactly a bug. If an object contains an array, it doesn't match itself, which is strange:

      > db.y.count()
      1
      > x=db.y.findOne()
      {"_id" :  ObjectId( "4a57873729a435a962700b96")  , "mongo" : "hacker" , "just" : BinData type: 2 len: 9 , "and" : ["an","array","reference"] , "with" : {"a" : "reference"}}
      > db.y.remove(x)
      > 
      > 
      > db.y.find()
      {"_id" :  ObjectId( "4a57873729a435a962700b96")  , "mongo" : "hacker" , "just" : BinData type: 2 len: 9 , "and" : ["an","array","reference"] , "with" : {"a" : "reference"}}
      > 
      

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: