mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 05:27:19 +01:00
fcl-db: sdf: fix for TTestCursorDBBasics.TestUpdateCursorPos
git-svn-id: trunk@39023 -
This commit is contained in:
parent
8384dc7c07
commit
fc390136cb
@ -562,12 +562,13 @@ function TFixedFormatDataSet.GetRecNo: Longint;
|
||||
var
|
||||
RecBuf: TRecordBuffer;
|
||||
begin
|
||||
Result := 0;
|
||||
if GetActiveRecBuf(RecBuf) and (State <> dsInsert) then
|
||||
begin
|
||||
InternalSetToRecord(RecBuf);
|
||||
UpdateCursorPos;
|
||||
Result := FCurRec + 1 - FDataOffset;
|
||||
end;
|
||||
end
|
||||
else
|
||||
Result := 0;
|
||||
end;
|
||||
|
||||
procedure TFixedFormatDataSet.SetRecNo(Value: Integer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user