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

BsonTemplateEvaluator::_evalElem one builds a single level

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: 2.7.6
    • Component/s: Shell
    • Labels:

      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" } } }
      
      
      

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

              Created:
              Updated:
              Resolved: