Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-285

Count should not convert hint document to an index name string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None

      If the hint option is a key pattern document (i.e. array or object), it should be passed to the count command as-is. The library currently converts documents to an index name string, which can cause a "bad hint" server error if the index was created with a custom name and cannot be found.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: