Commit ec002549 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed limit operator according TQL spec

parent 93b26d13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -219,9 +219,9 @@ class TqlParser(object):
                      | expression CIRCUMFLEX WORD COLON WORD"""
        try:
            if len(p) == 4:
                p[0] = LimitOperator(p[1], start=int(p[3]))
                p[0] = LimitOperator(p[1], stop=int(p[3]))
            elif len(p) == 5:
                p[0] = LimitOperator(p[1], stop=int(p[4]))
                p[0] = LimitOperator(p[1], start=-int(p[4]))
            elif len(p) == 6:
                p[0] = LimitOperator(p[1], start=int(p[3]), stop=int(p[5]))
        except ValueError: