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

BsonTemplateEvaluator::_evalElem one builds a single level

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.8
    • 2.7.6
    • Shell

    Description

      Problem:

      The method BsonTemplateEvaluator::_evalElem only build a single level of template expansion, so it will expand the following correct

      Input

      { _id : { "#VARIABLE" : "x" } }

      Output

      { _id: 194 }

      However at deeper levels, it does not expand correctly

      Input

      { $set : { y :  { "#VARIABLE" : "x" } } }

      Output

      { $set: { y: { #VARIABLE: "x" } } }

       

      Attachments

        Activity

          People

            greg_10gen Greg Studer
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: