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

Error on invalid query field names ($prefix)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.2
    • Component/s: Querying
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: