if (!word.toString().contains(":"))
throw new OCommandSQLParsingException(
"Range must contains record id in the form of <cluster-id>:<cluster-pos>. Example: RANGE 10:50, 10:100", text, currentPos);
try {
rangeFrom = new ORecordId(word.toString());
} catch (Exception e) {
throw new OCommandSQLParsingException("Invalid record id setted as RANGE from. Value setted is '" + word
+ "' but it should be a valid record id in the form of <cluster-id>:<cluster-pos>. Example: RANGE 10:50", text,
currentPos);
}
if (newPos == -1)
return;
currentPos = newPos;
newPos = OSQLHelper.nextWord(text, textUpperCase, currentPos, word, true);
if (newPos == -1)
return;
if (!word.toString().equalsIgnoreCase("LIMIT")) {
if (!word.toString().contains(":"))
throw new OCommandSQLParsingException(
"Range must contains record id in the form of <cluster-id>:<cluster-pos>. Example: RANGE 10:50, 10:100", text,
currentPos);
try {
rangeTo = new ORecordId(word.toString());
} catch (Exception e) {
throw new OCommandSQLParsingException("Invalid record id setted as RANGE to. Value setted is '" + word
+ "' but it should be a valid record id in the form of <cluster-id>:<cluster-pos>. Example: RANGE 10:50, 10:100", text,
currentPos);
}