Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15320

BSONElement does not support a simple encapsulation of the value

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.6
    • Shell
    • Fully Compatible

    Description

      Problem:

      There are cases when you you simply want to get the encapsulated value (type and object) of a BSONElement so that you can put this value elsewhere.

      Workaround:
      Use a switch statement to examine the type and then call the appropriate access method to get a String, Number, date etc. before putting this into the target element.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: