minor update for empty tables (skipping other techniques)

This commit is contained in:
Miroslav Stampar 2012-05-09 10:34:21 +00:00
parent 6177317a17
commit 56a3431be6
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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()