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

Change transformValue to use MarshalValue

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: CRUD
    • Security Level: Public
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              divjot.arora Divjot Arora
              Reporter:
              divjot.arora Divjot Arora
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: