Skip to content

Commit 91a4724

Browse files
committed
Minor bug fix to correctly handle --start and --stop
1 parent e2a0f7a commit 91a4724

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def paramToDict(place, parameters=None):
105105
elif len(conf.testParameter) != len(testableParameters.keys()):
106106
for parameter in conf.testParameter:
107107
if not testableParameters.has_key(parameter):
108-
warnMsg = "the testable parameter '%s' " % parameter
108+
warnMsg = "the testable parameter '%s' " % parameter
109109
warnMsg += "you provided is not into the %s" % place
110110
logger.warn(warnMsg)
111111

@@ -538,10 +538,10 @@ def getRange(count, dump=False):
538538
limitStop = count
539539

540540
if dump:
541-
if isinstance(conf.limitStop, int) and conf.limitStop < count:
541+
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
542542
limitStop = conf.limitStop
543543

544-
if isinstance(conf.limitStart, int) and conf.limitStart <= limitStop:
544+
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
545545
limitStart = conf.limitStart
546546

547547
# TODO: also for Microsoft SQL Server in getColumns method?

0 commit comments

Comments
 (0)