Skip to content

Commit 56a3431

Browse files
committed
minor update for empty tables (skipping other techniques)
1 parent 6177317 commit 56a3431

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/techniques/error/use.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ def errorUse(expression, expected=None, dump=False):
304304
warnMsg = "the SQL query provided does not "
305305
warnMsg += "return any output"
306306
logger.warn(warnMsg)
307-
307+
else:
308+
outputs = [] # for empty tables
308309
return outputs
309310

310311
if " ORDER BY " in expression and (stopLimit - startLimit) > SLOW_ORDER_COUNT_THRESHOLD:

lib/techniques/union/use.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ def unionUse(expression, unpack=True, dump=False):
263263
warnMsg = "the SQL query provided does not "
264264
warnMsg += "return any output"
265265
logger.warn(warnMsg)
266-
266+
else:
267+
value = [] # for empty tables
267268
return value
268269

269270
threadData = getCurrentThreadData()

0 commit comments

Comments
 (0)