Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1014

Unrecognized $-operators are omitted from find command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Python Sprint 27

      Description

      Input:

      _gen_find_command('collection', {'$query': {'foo': 1}, '$dumb': 2}, None,
                        0, 0, 0, None)
      

      I believe the expected output is:

      SON([('find', 'collection'), ('filter', {'foo': 1}), ('$dumb', 2)])
      

      But the unrecognized $-option is omitted, if there is also a $query in the input:

      SON([('find', 'collection'), ('filter', {'foo': 1})])
      

        Attachments

          Activity

            People

            Assignee:
            anna.herlihy Anna Herlihy
            Reporter:
            jesse A. Jesse Jiryu Davis
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: