Browse Source

HPCC-13267 Ensure ctx is available if external function needs it

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 10 years ago
parent
commit
de6873b576
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecl/hqlcpp/hqlcpp.cpp

+ 1 - 1
ecl/hqlcpp/hqlcpp.cpp

@@ -5671,7 +5671,7 @@ void HqlCppTranslator::doBuildCall(BuildCtx & ctx, const CHqlBoundTarget * tgt,
 
     IHqlExpression * external = funcdef->queryChild(0);
     IHqlExpression * formals = funcdef->queryChild(1);
-    if (external->hasAttribute(ctxmethodAtom))
+    if (external->hasAttribute(ctxmethodAtom) || external->hasAttribute(contextAtom))
         ensureContextAvailable(ctx);
     if (external->hasAttribute(gctxmethodAtom) || external->hasAttribute(globalContextAtom))
     {