[CDRIVER-3084] mongoc_collection_keys_to_index_string returns wrong index string if Int64 is used for the direction Created: 15/Apr/19  Updated: 28/Oct/23  Resolved: 08/Jul/19

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Bug Priority: Minor - P4
Reporter: Patrick Freed Assignee: Isabel Atkinson
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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



 Comments   
Comment by Githook User [ 03/Jul/19 ]

Author:

{'name': 'isabelatkinson', 'username': 'isabelatkinson', 'email': 'isabel.atkinson@mongodb.com'}

Message: Cdriver 3084 (#574)

  • fixed bug, still need to write test code
  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • fixed loop bug
  • fixed leak
Comment by Githook User [ 03/Jul/19 ]

Author:

{'name': 'isabelatkinson', 'username': 'isabelatkinson', 'email': 'isabel.atkinson@mongodb.com'}

Message: Cdriver 3084 (#574)

  • fixed bug, still need to write test code
  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • CDRIVER-3084 fixed bug in index string function for INT64 direction

Fixed mongoc_collection_keys_to_index_string() to return the correct
string representation when the given key uses an INT64 for its direction
field.

  • fixed loop bug
  • fixed leak
Generated at Wed Feb 07 21:17:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.