Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efe4c13

Browse files
committed
Update regarding suffixQuery (user supplied --suffix should nullify any eventual payload comments)
1 parent ec43cee commit efe4c13

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def suffixQuery(self, expression, comment=None, suffix=None, where=None):
189189

190190
expression = self.cleanupPayload(expression)
191191

192+
# User supplied --suffix nullifies any eventual payload comments
193+
comment = None if conf.suffix is not None and suffix == conf.suffix else comment
194+
192195
if Backend.getIdentifiedDbms() == DBMS.ACCESS and comment == GENERIC_SQL_COMMENT:
193196
comment = "%00"
194197

0 commit comments

Comments
 (0)