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

mongoc_collection_find_with_opts() conflict with projection operators

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.5.0
    • Component/s: None
    • None

      _mongoc_cursor_new_with_opts() validates options with (BSON_VALIDATE_DOLLAR_KEYS | BSON_VALIDATE_EMPTY_KEYS) (see: here), which presents a problem for the $slice projection operator (and possibly others).

      This appears to be an issue in 1.5.0-rc1 at least, although that's not available as an "affects version" in JIRA.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: