Minor update regarding the #4388

This commit is contained in:
Miroslav Stampar
2020-10-20 12:54:22 +02:00
parent 5af64f5ae4
commit 5029d67e4f
2 changed files with 2 additions and 2 deletions

View File

@@ -1225,7 +1225,7 @@ class Agent(object):
prefix += " WHERE %s" % conf.dumpWhere
query = prefix
if suffix:
if suffix and not all(re.search(r"ORDER BY", _, re.I) is not None for _ in (query, suffix)):
query += suffix
return query