Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b91c829

Browse files
committed
minor bug fix (issue #310)
1 parent e583ba6 commit b91c829

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,12 +690,12 @@ def limitCondition(self, expression, dump=False):
690690
limitGroupStop = queries[Backend.getIdentifiedDbms()].limitgroupstop.query
691691

692692
if limitGroupStart.isdigit():
693-
if limitRegExp2:
694-
startLimit = 0
695-
stopLimit = limitRegExp2.group(int(limitGroupStart))
696-
else:
693+
if limitRegExp:
697694
startLimit = int(limitRegExp.group(int(limitGroupStart)))
698695
stopLimit = limitRegExp.group(int(limitGroupStop))
696+
elif limitRegExp2:
697+
startLimit = 0
698+
stopLimit = limitRegExp2.group(int(limitGroupStart))
699699
limitCond = int(stopLimit) > 1
700700

701701
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):

0 commit comments

Comments
 (0)