Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3084

mongoc_collection_keys_to_index_string returns wrong index string if Int64 is used for the direction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: libmongoc
    • Labels:

      Description

      e.g. for an index { "a": NumberLong(1) } , the string "a_" is returned. According to the docs, an int64 for the direction is acceptable, so this function should generate the correct index string in this case (i.e. "a_1").

        Attachments

          Activity

            People

            Assignee:
            isabel.atkinson Isabel Atkinson
            Reporter:
            patrick.freed Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: