Skip to content

Commit

Permalink
Fix parsing of traverse with limit and strategy
Browse files Browse the repository at this point in the history
Resolves: #5330
  • Loading branch information
luigidellaquila committed Nov 17, 2015
1 parent 221ffcc commit 94304f5
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
import com.orientechnologies.orient.core.exception.OQueryParsingException;
import com.orientechnologies.orient.core.serialization.serializer.OStringSerializerHelper;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

import java.util.*;

/**
* Executes a TRAVERSE crossing records. Returns a List<OIdentifiable> containing all the traversed records that match the WHERE
Expand Down Expand Up @@ -114,7 +110,7 @@ public OCommandExecutorSQLTraverse parse(final OCommandRequest iRequest) {

parserSkipWhiteSpaces();

if (!parserIsEnded()) {
while (!parserIsEnded()) {
if (parserOptionalKeyword(KEYWORD_LIMIT, KEYWORD_SKIP, KEYWORD_OFFSET, KEYWORD_TIMEOUT, KEYWORD_MAXDEPTH, KEYWORD_STRATEGY)) {
final String w = parserGetLastWord();
if (w.equals(KEYWORD_LIMIT))
Expand Down

0 comments on commit 94304f5

Please sign in to comment.