Update regarding suffixQuery (user supplied --suffix should nullify any eventual payload comments)

This commit is contained in:
Miroslav Stampar 2012-09-25 14:36:15 +02:00
parent ec43ceec40
commit efe4c13ed1

View File

@ -189,6 +189,9 @@ class Agent:
expression = self.cleanupPayload(expression) 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: if Backend.getIdentifiedDbms() == DBMS.ACCESS and comment == GENERIC_SQL_COMMENT:
comment = "%00" comment = "%00"