TMemDataset uses wrong bookmark size
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
TMemDataset in its create method set BookmarkSize:=sizeof(TMTRecInfo), however that includes both the bookmark and the flags.
The result is that TDataSet.Bookmark returns different values for the same record.
As a hack I overrode TMemDataset to set BookmarkSize to sizeof(longint).
I see that other dataset descendants use a separate structure for the bookmark and the bookmark flags.
Mantis conversion info:
- Mantis ID: 13967
- Version: 2.2.4
- Fixed in version: 3.0.0
- Fixed in revision: 20182 (#60ff11d1)