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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: mongodb-2.6
    • Fix Version/s: 01112017-cleanup
    • Component/s: manual
    • Labels:
    • Environment:
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      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
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              6 years, 38 weeks, 1 day ago