Minor update (drei)

This commit is contained in:
Miroslav Stampar
2020-10-05 21:36:30 +02:00
parent 21cc6e3c99
commit 13a2ab3fa3
7 changed files with 7 additions and 7 deletions

View File

@@ -1207,7 +1207,7 @@ class Agent(object):
def whereQuery(self, query):
if conf.dumpWhere and query:
if Backend.isDbms(DBMS.ORACLE) and re.search("qq ORDER BY \w+\)", query, re.I) is not None:
if Backend.isDbms(DBMS.ORACLE) and re.search(r"qq ORDER BY \w+\)", query, re.I) is not None:
prefix, suffix = re.sub(r"(?i)(qq)( ORDER BY \w+\))", r"\g<1> WHERE %s\g<2>" % conf.dumpWhere, query), ""
else:
match = re.search(r" (LIMIT|ORDER).+", query, re.I)