From 23dc618311e09a0448db16d2905f731d357df974 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 21 Jul 2016 12:08:50 +0200 Subject: [PATCH] fix a glitch in explainer output --- js/common/modules/@arangodb/aql/explainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/modules/@arangodb/aql/explainer.js b/js/common/modules/@arangodb/aql/explainer.js index 0aa438864c..29b97973dc 100644 --- a/js/common/modules/@arangodb/aql/explainer.js +++ b/js/common/modules/@arangodb/aql/explainer.js @@ -969,7 +969,7 @@ function processQuery (query, explain) { collect += (node.count ? ' ' + keyword('WITH COUNT') : '') + (node.outVariable ? ' ' + keyword('INTO') + ' ' + variableName(node.outVariable) : '') + - (node.expressionVariable ? ' = ' + variableName(node.expressionVariable) : '') + + ((node.expressionVariable && node.outVariable) ? " = " + variableName(node.expressionVariable) : "") + (node.keepVariables ? ' ' + keyword('KEEP') + ' ' + node.keepVariables.map(function (variable) { return variableName(variable.variable); }).join(', ') : '') + ' ' + annotation('/* ' + node.collectOptions.method + '*/'); return collect;