Minor refactoring

This commit is contained in:
Miroslav Stampar 2012-11-29 12:21:12 +01:00
parent 2e2a7a34b6
commit 605d73cc3d

View File

@ -397,7 +397,7 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
found = False
count = 0
if query and not 'COUNT(*)' in query:
if query and not re.search(r"COUNT.*FROM.*\(.*DISTINCT", query, re.I):
query = query.replace("DISTINCT ", "")
if not conf.forceDns: