Fixing MySQL stacked file reading

This commit is contained in:
Miroslav Štampar 2026-06-04 20:18:12 +02:00
parent 2f4ff0d430
commit 0d4aff7e1a
3 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ class Filesystem(GenericFilesystem):
if length > chunkSize:
result = []
for i in xrange(1, length, chunkSize):
for i in xrange(1, length + 1, chunkSize):
chunk = inject.getValue("SELECT MID(%s, %d, %d) FROM %s" % (self.tblField, i, chunkSize, self.fileTblName), unpack=False, resumeValue=False, charsetType=CHARSET_TYPE.HEXADECIMAL)
result.append(chunk)
else: