1
0
Fork 0

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

This commit is contained in:
Jan Steemann 2014-08-29 09:33:14 +02:00
commit 2630c7107a
1 changed files with 8 additions and 1 deletions

View File

@ -902,7 +902,14 @@ namespace triagens {
////////////////////////////////////////////////////////////////////////////////
virtual ExecutionNode* clone () const {
auto c = new IndexRangeNode(_id, _vocbase, _collection, _outVariable, _index, _ranges);
std::vector<std::vector<RangeInfo*>> 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<ExecutionNode*>(c);
}