This commit is contained in:
Miroslav Stampar
2020-10-13 10:32:09 +02:00
parent 13a2ab3fa3
commit 231c3da057
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
logger.warn(warnMsg)
elif re.search(r"ORDER BY [^ ]+\Z", expression):
debugMsg = "retrying failed SQL query without the ORDER BY clause"
logger.debug(debugMsg)
singleTimeDebugMessage(debugMsg)
expression = re.sub(r"\s*ORDER BY [^ ]+\Z", "", expression)
retVal = _oneShotUnionUse(expression, unpack, limited)