Bug: Problem with BooleanDomainFields and TIBCDataSetUpdater
Posted: Tue 02 Sep 2008 15:04
In TIBCDataSetUpdater.SetUpdateQueryOptions, the option BooleanDomainFields is not copied from the actual dataset to the internal dataset.
Result: When BooleanDomainFields is active for a Dataset and the dataset is configured to refresh the current record after update or insert and the dataset contains a column with a Boolean type, then the exception "EConvertError" is thrown, because the internal dataset used for refresh uses a TSmallIntField for the column, whereas the actual dataset uses a TBooleanField and expects a boolean value.
Bugfix: Add the line
to TIBCDataSetUpdater.SetUpdateQueryOptions
Result: When BooleanDomainFields is active for a Dataset and the dataset is configured to refresh the current record after update or insert and the dataset contains a column with a Boolean type, then the exception "EConvertError" is thrown, because the internal dataset used for refresh uses a TSmallIntField for the column, whereas the actual dataset uses a TBooleanField and expects a boolean value.
Bugfix: Add the line
Code: Select all
Dest.Options.BooleanDomainFields := Source.Options.BooleanDomainFields;