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

Error on invalid query field names ($prefix)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.2
    • Affects Version/s: 2.4.0
    • Component/s: Querying
    • None

      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
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: