Minor fix for --threads>1 --binary-fields

This commit is contained in:
Miroslav Stampar 2013-02-13 20:47:27 +01:00
parent 3483fd4347
commit a0b44da5d8

View File

@ -85,7 +85,7 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
expression += " AS %s" % randomStr(lowercase=True)
if field and conf.hexConvert:
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields.split(','):
nulledCastedField = agent.nullAndCastField(field)
injExpression = expression.replace(field, nulledCastedField, 1)
else: