Skip to content

Commit

Permalink
Fix multiple edge creations in BATCH script with LET statements
Browse files Browse the repository at this point in the history
Resolves: #8444
  • Loading branch information
luigidellaquila committed Sep 18, 2018
1 parent de846b9 commit 56af432
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@ private void init() {

Iterator toIter = (Iterator) toValues;

while (toIter != null && toIter.hasNext()) {
toList.add(toIter.next());
}

toIterator = toList.iterator();
if (toIter instanceof OResultSet) {
try {
((OResultSet) toIter).reset();
} catch (Exception ignore) {
}
}
while (toIter != null && toIter.hasNext()) {
toList.add(toIter.next());
}

toIterator = toList.iterator();

currentFrom = fromIter != null && fromIter.hasNext() ? asVertex(fromIter.next()) : null;

Expand Down

0 comments on commit 56af432

Please sign in to comment.