Minor patch for MsSQL stacked file reading

This commit is contained in:
Miroslav Štampar 2026-06-04 20:51:21 +02:00
parent 244d283198
commit 3d0932c217
3 changed files with 4 additions and 4 deletions

View file

@ -119,7 +119,7 @@ class Filesystem(GenericFilesystem):
DECLARE @firstint INT
DECLARE @secondint INT
SET @tempint = CONVERT(INT, (SELECT ASCII(SUBSTRING(%s, @counter, 1)) FROM %s))
SET @tempint = CONVERT(INT, (SELECT TOP 1 ASCII(SUBSTRING(%s, @counter, 1)) FROM %s))
SET @firstint = floor(@tempint/16)
SET @secondint = @tempint - (@firstint * 16)
SET @hexstr = @hexstr + SUBSTRING(@charset, @firstint+1, 1) + SUBSTRING(@charset, @secondint+1, 1)