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

Skip to content

Commit 688a2db

Browse files
committed
Fix for an Issue #208
1 parent 64b4586 commit 688a2db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/request/inject.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def __goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, cha
168168
expression.upper().endswith(FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()]))) \
169169
and not re.search(SQL_SCALAR_REGEX, expression, re.I):
170170

171+
limitCond = True
171172
limitRegExp = re.search(queries[Backend.getIdentifiedDbms()].limitregexp.query, expression, re.I)
172173
topLimit = re.search("TOP\s+([\d]+)\s+", expression, re.I)
173174

@@ -199,8 +200,6 @@ def __goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, cha
199200

200201
elif Backend.isDbms(DBMS.ORACLE):
201202
limitCond = False
202-
else:
203-
limitCond = True
204203

205204
# We assume that only queries NOT containing a "LIMIT #, 1"
206205
# (or similar depending on the back-end DBMS) can return

0 commit comments

Comments
 (0)