diff --git a/packages/fcl-db/src/sqlite/customsqliteds.pas b/packages/fcl-db/src/sqlite/customsqliteds.pas index b73b16c2e1..0ee491a0b0 100644 --- a/packages/fcl-db/src/sqlite/customsqliteds.pas +++ b/packages/fcl-db/src/sqlite/customsqliteds.pas @@ -757,10 +757,7 @@ begin case GetMode of gmPrior: if (FCurrentItem^.Previous = FBeginItem) or (FCurrentItem = FBeginItem) then - begin - Result := grBOF; - FCurrentItem := FBeginItem; - end + Result := grBOF else FCurrentItem:=FCurrentItem^.Previous; gmCurrent: