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

Support variants of complex types in IDL

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-02-06

    Description

      Currently IDL code generation only supports variants of simple types (int, bool, etc). We want to expand this to support variants of used defined structs. Per Mark's recommendation we do not need to support a perfect generation, only what we consider necessary. It should be sufficient to say that the structs in a variant must all have a unique first element (which can be viewed by BSON.firstElement) to determine what the type of the variant is

      Attachments

        Activity

          People

            sean.zimmerman@mongodb.com Sean Zimmerman
            sean.zimmerman@mongodb.com Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: