Removing a hard limit to use --start/--stop only for --dump scenarios

This commit is contained in:
Miroslav Stampar 2015-09-28 11:11:39 +02:00
parent ac467bc453
commit 906cb6d3c2
2 changed files with 6 additions and 7 deletions

View File

@ -1370,7 +1370,7 @@ def expandAsteriskForColumns(expression):
return expression
def getLimitRange(count, dump=False, plusOne=False):
def getLimitRange(count, plusOne=False):
"""
Returns range of values used in limit/offset constructs
@ -1382,7 +1382,6 @@ def getLimitRange(count, dump=False, plusOne=False):
count = int(count)
limitStart, limitStop = 1, count
if dump:
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
limitStop = conf.limitStop

View File

@ -275,7 +275,7 @@ class Entries:
else:
emptyColumns = []
plusOne = Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2)
indexRange = getLimitRange(count, dump=True, plusOne=plusOne)
indexRange = getLimitRange(count, plusOne=plusOne)
if len(colList) < len(indexRange) > CHECK_ZERO_COLUMNS_THRESHOLD:
for column in colList: