Fix for a bug reported privately by email

This commit is contained in:
Miroslav Stampar 2015-06-22 16:28:35 +02:00
parent 9e5ef094a3
commit 7d418af274

View File

@ -241,7 +241,8 @@ class Agent(object):
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')) and not (query and query[-1] == '('):
query += " "
query = "%s%s" % (query.replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
if query:
query = "%s%s" % (query.replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
return query