From b91c829103e5230efb6146c1884bb74fd8f41897 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 19 Dec 2012 12:42:31 +0000 Subject: [PATCH] minor bug fix (issue #310) --- lib/core/agent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 487eaf174..f9b72b397 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -690,12 +690,12 @@ class Agent(object): limitGroupStop = queries[Backend.getIdentifiedDbms()].limitgroupstop.query if limitGroupStart.isdigit(): - if limitRegExp2: - startLimit = 0 - stopLimit = limitRegExp2.group(int(limitGroupStart)) - else: + if limitRegExp: startLimit = int(limitRegExp.group(int(limitGroupStart))) stopLimit = limitRegExp.group(int(limitGroupStop)) + elif limitRegExp2: + startLimit = 0 + stopLimit = limitRegExp2.group(int(limitGroupStart)) limitCond = int(stopLimit) > 1 elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):