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

Error on invalid query field names ($prefix)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.4.0
    • 2.5.2
    • Querying
    • None

    Description

      If an invalid field name is used in the query system then an error should occur.

      Current:

      > db.a.find({$a:1})
      >

      Expected:

      > db.a.find({$a:1})
      error: {
      	"$err" : "bad query: BadValue unknown top level operator: $a",
      	"code" : 16810
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            scotthernandez Scott Hernandez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: