Fixed custom MSSQL "limited" query support also for Partial UNION query technique

This commit is contained in:
Bernardo Damele
2009-01-03 00:27:04 +00:00
parent 9c42a883be
commit 2d87a3349f
3 changed files with 7 additions and 4 deletions

View File

@@ -216,6 +216,9 @@ def unionUse(expression, direct=False, unescape=True, resetCounter=False):
untilLimitChar = expression.index(queries[kb.dbms].limitstring)
expression = expression[:untilLimitChar]
elif kb.dbms == "Microsoft SQL Server":
stopLimit += startLimit
if not stopLimit or stopLimit <= 1:
if kb.dbms == "Oracle" and expression.endswith("FROM DUAL"):
test = False