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

Change in error message for invalid "hint"s

    XMLWordPrintable

    Details

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

      Description

      The error message for using $hint with an index that doesn't exist has changed between versions 2.4 and 2.5.

      2.4.9-pre-

      > db.smalltest.find({}).hint({notAnIndex:1})
      error: { "$err" : "bad hint", "code" : 10113 }

      2.5.5-pre-

      > db.smalltest.find({}).hint({notAnIndex:1})
      error: {
      	"$err" : "Couldn't get runner for query because: No query solutions query is ns=qry.smalltest limit=0 skip=0\nTree: $and\nSort: {}\nProj: {}\n",
      	"code" : 17007
      }

        Attachments

          Activity

            People

            • Assignee:
              sam.kleinman Sam Kleinman
              Reporter:
              luke.lovett Luke Lovett
              Participants:
              Last commenter:
              Jonathan Dahl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 3 weeks, 5 days ago
                Date of 1st Reply: