mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix EArgumentOutOfRangeException in TDBConnection.PrefetchResults when SQL batch could not be separated correctly. Should be a rare case, but happened, see http://www.heidisql.com/forum.php?t=21380
This commit is contained in:
@@ -3421,7 +3421,8 @@ begin
|
||||
LastResults := GetLastResults;
|
||||
for i:=0 to LastResults.Count-1 do begin
|
||||
FPrefetchResults.Add(LastResults[i]);
|
||||
FPrefetchResults[i].SQL := Batch[i].SQL;
|
||||
if Batch.Count > i then
|
||||
FPrefetchResults[i].SQL := Batch[i].SQL;
|
||||
end;
|
||||
Batch.Free;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user