Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1045

collection::count() serializes options::count::hint incorrectly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.3
    • None
    • Implementation
    • None

    Description

      collection::count() incorrectly serializes the hint object in the count request with a field name of "$hint" instead of "hint". When the server receives the incorrect count option "$hint", it is ignored.

      As a result, passing an options::count object to collection::count which has a hint set will have no effect.

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: