Bug: Problem with BooleanDomainFields and TIBCDataSetUpdater

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
NineBerry
Posts: 11
Joined: Tue 02 Sep 2008 14:54

Bug: Problem with BooleanDomainFields and TIBCDataSetUpdater

Post by NineBerry » 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

Code: Select all

Dest.Options.BooleanDomainFields := Source.Options.BooleanDomainFields;
to TIBCDataSetUpdater.SetUpdateQueryOptions

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 03 Sep 2008 07:36

Thank you for information. We'll add this fix in the next IBDAC build.

Post Reply