This commit is contained in:
jjf012 2015-11-26 03:37:35 +00:00
commit 9540372e9a

View File

@ -74,7 +74,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
testChar = str(current % 10)
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
if result and testChar in result:
if result and (len(result.replace(testChar,''))==0):
if result == testChar * current:
kb.errorChunkLength = current
break