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

Change in Error message for "Ambiguous field name" in query

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: mongodb-2.6
    • Component/s: manual
    • Labels:

      Problem:
      Change in the error code for the following query

      db.s9.find( { "a" : "" } ).sort( { "d.1.a" : true } ).skip( 100 ).skip( 1 )
      

      2.4.5

      error: {
      "$err" : "Ambiguous field name found in array (do not use numeric field names in embedded elements in an array), field: '1' for array: { 0: 1.0, 1: { 1: 0.0, d:

      Unknown macro: { c}

      }, 2: \"Do not seek to follow in the footsteps of the men of old; seek what they sought.\" }",
      "code" : 15855
      }

      2.5.4-Pre

      error: {
      "$err" : "Ambiguous field name found in array (do not use numeric field names in embedded elements in an array), field: '1' for array: { 0: 1.0, 1: { 1: 0.0, d:

      Unknown macro: { c}

      }, 2: \"Do not seek to follow in the footsteps of the men of old; seek what they sought.\" }",
      "code" : 16746
      }

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

              Created:
              Updated:
              Resolved:
              10 years, 27 weeks, 3 days ago