diff --git a/arangod/Aql/ExecutionNode.h b/arangod/Aql/ExecutionNode.h index bc6e10ad1c..2f2ab37751 100644 --- a/arangod/Aql/ExecutionNode.h +++ b/arangod/Aql/ExecutionNode.h @@ -902,7 +902,14 @@ namespace triagens { //////////////////////////////////////////////////////////////////////////////// virtual ExecutionNode* clone () const { - auto c = new IndexRangeNode(_id, _vocbase, _collection, _outVariable, _index, _ranges); + std::vector> ranges; + for (auto i = 0; i < _ranges.size(); i++){ + for (auto x: _ranges.at(i)){ + ranges.at(i).push_back(x); + } + } + auto c = new IndexRangeNode(_id, _vocbase, _collection, _outVariable, + _index, ranges); cloneDependencies(c); return static_cast(c); }