Minor patch

This commit is contained in:
Miroslav Stampar
2016-01-10 23:12:46 +01:00
parent e519ed2e18
commit e53e4dddf1
2 changed files with 1 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
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 or "").startswith(testChar):
if result == testChar * current:
kb.errorChunkLength = current
break