Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1590

Change transformValue to use MarshalValue

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: CRUD
    • None

      transformValue only handles strings and documents. The commitQuorum option being added in GODRIVER-1582 supports strings and numbers. Instead of adding more special cases, we can leverage bson.MarshalValue, which will already handle all of the different numerical types. We should also ensure that all users of transformValue have integration tests to catch regressions.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: