From 56a3431be6672595180c6508e3fb7b7e2e46f21b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 9 May 2012 10:34:21 +0000 Subject: [PATCH] minor update for empty tables (skipping other techniques) --- lib/techniques/error/use.py | 3 ++- lib/techniques/union/use.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index ab394b2ec..5bb18b785 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -304,7 +304,8 @@ def errorUse(expression, expected=None, dump=False): warnMsg = "the SQL query provided does not " warnMsg += "return any output" logger.warn(warnMsg) - + else: + outputs = [] # for empty tables return outputs if " ORDER BY " in expression and (stopLimit - startLimit) > SLOW_ORDER_COUNT_THRESHOLD: diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index 102d40762..853272ee3 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -263,7 +263,8 @@ def unionUse(expression, unpack=True, dump=False): warnMsg = "the SQL query provided does not " warnMsg += "return any output" logger.warn(warnMsg) - + else: + value = [] # for empty tables return value threadData = getCurrentThreadData()