mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix wrong row index used in TSQLiteQuery.Col and TSQLiteQuery.IsNull. Fixes loading more rows after first page on large SQLite tables. Closes #1053
This commit is contained in:
@@ -7377,7 +7377,7 @@ begin
|
||||
if FEditingPrepared and Assigned(FCurrentUpdateRow) then begin
|
||||
Result := FCurrentUpdateRow[Column].NewText;
|
||||
end else begin
|
||||
Result := FCurrentResults[RecNo][Column].OldText;
|
||||
Result := FCurrentResults[FRecNoLocal][Column].OldText;
|
||||
end;
|
||||
end else if not IgnoreErrors then
|
||||
Raise EDbError.CreateFmt(_(MsgInvalidColumn), [Column, ColumnCount, RecordCount]);
|
||||
@@ -7694,7 +7694,7 @@ begin
|
||||
if FEditingPrepared and Assigned(FCurrentUpdateRow) then
|
||||
Result := FCurrentUpdateRow[Column].NewIsNull
|
||||
else
|
||||
Result := FCurrentResults[RecNo][Column].OldIsNull;
|
||||
Result := FCurrentResults[FRecNoLocal][Column].OldIsNull;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user