BsonTemplateEvaluator::_evalElem one builds a single level

XMLWordPrintableJSON

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

      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 Studer (Inactive)
              Reporter:
              Alvin Richards (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: