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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

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

                Created:
                Updated: