Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2139

Change in error code between 2.4.x and 2.5.x

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: mongodb-2.6
    • Component/s: manual
    • Labels:
    • Environment:

      Problem:
      Changes in errors code for 2.4.x and 2.5.x for the same condition.

      Possible just a DOC change.

      Reproduce:

      2.4.5

      > db.t.drop()
      > db.t.find({ "$nor" : [ ] })
      error: { "$err" : "$and/$or/$nor must be a nonempty array", "code" : 13086 }
      

      2.5.3-pre

      > db.t.drop()
      > db.t.find({ "$nor" : [ ] })
      error: {
      	"$err" : "bad query: BadValue $and/$or/$nor must be a nonempty array",
      	"code" : 16810
      }
      

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 27 weeks, 6 days ago