The bug causes a TFDQuery
which is connected to a TDBGrid
via a TDataSource
to seemingly have more records than it actually has.
The number of records the query pretends to have depend on the number of rows that fit into the grid.
The steps to reproduce this error are the following:
- Setup a normal
TFDConnection
. - Setup a
TDBGrid
and connect it via aTDataSource
to aTFDQuery
. - Set the
SQL
of the query to select at least one blob or memo field. - Set the
FetchOptions.Items
of the query to so it doesn't includefiBlobs
. - Add a calculated Field to the query.
- Add a
OnCalcFields
handler to the query and read the selected blob or memo field (e.g.DataSet.FieldByName('Memo').AsString
). - Open the query.