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

Wrong wrapping function called for CommandCursor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.1, 2.8.1
    • Affects Version/s: 2.7.2, 2.8, 3.0
    • Component/s: None
    • None

      CommandCursor wraps object with function _fix_incoming (https://github.com/mongodb/mongo-python-driver/blob/master/pymongo/command_cursor.py#L170), but instead object shoud be wrapped with _fix_outgoing like in Cursor (https://github.com/mongodb/mongo-python-driver/blob/master/pymongo/cursor.py#L971)

      And also I suggest to rename functions to something like "*_to_database" and "*_from_database", because current function names (*_outgoing and *_incoming) are very confusing.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            Last G Last G [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: