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

Shell allows insert() of objects which don't make sense

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.2
    • Component/s: Shell
    • ALL
    • Hide

      mongo
      db.foo.insert(123);
      db.foo.find();
      db.foo.insert(/\d/);
      db.foo.find();

      etc.

      Show
      mongo db.foo.insert(123); db.foo.find(); db.foo.insert(/\d/); db.foo.find(); etc.

      Calling db.foo.insert(o) with o = /\d/ | o = '123' | o = 123 | o = ISODate() is accepted. Afterwards db.foo.find() throws errors.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            drgerd Gerd Jungbluth
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: