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

Database.current_op does not use CodecOptions when the server is >=3.2

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

      Database.current_op does not use CodecOptions when the server is >=3.2 but does use it on server <= 3.2:
      https://github.com/mongodb/mongo-python-driver/blob/3.7.2/pymongo/database.py#L832-L833

      This means a user that wants ordered results or to set the unicode_decode_error_handler as in https://groups.google.com/forum/#!topic/mongodb-user/tgXYrTepBWE needs to use Database.command directly.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: