1
0
Fork 0

Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2

This commit is contained in:
Jan Steemann 2014-09-08 12:05:45 +02:00
commit 88454fbecc
1 changed files with 3 additions and 2 deletions

View File

@ -1489,8 +1489,9 @@ void CalculationBlock::doEvaluation (AqlItemBlock* result) {
result->setDocumentCollection(_outReg, result->getDocumentCollection(_inRegs[0]));
for (size_t i = 0; i < n; i++) {
// must clone, otherwise all the results become invalid
AqlValue a = result->getValue(i, _inRegs[0]).clone();
// need not clone to avoid a copy, the AqlItemBlock's hash takes
// care of correct freeing:
AqlValue a = result->getValue(i, _inRegs[0]);
try {
result->setValue(i, _outReg, a);
}