From efe4c13ed1c88ff62617b89d66d415bbc7747bb2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 25 Sep 2012 14:36:15 +0200 Subject: [PATCH] Update regarding suffixQuery (user supplied --suffix should nullify any eventual payload comments) --- lib/core/agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index c2f3f098b..9f1ff26f4 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -189,6 +189,9 @@ class Agent: expression = self.cleanupPayload(expression) + # User supplied --suffix nullifies any eventual payload comments + comment = None if conf.suffix is not None and suffix == conf.suffix else comment + if Backend.getIdentifiedDbms() == DBMS.ACCESS and comment == GENERIC_SQL_COMMENT: comment = "%00"