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

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

      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").

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

              Created:
              Updated:
              Resolved: