BooleanDomainFields overides null when set to false

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sedcodev
Posts: 1
Joined: Tue 08 Sep 2009 08:10

BooleanDomainFields overides null when set to false

Post by sedcodev » Tue 08 Sep 2009 08:21

Im using UniDAC 2.70 and I think I have found a bug. When posting a record to the database instead of setting the value to NULL it sets it to zero. This field is defined as a BOOLEAN_FIELD but I don't want it to behave as one instead I want it to act as a regular integer field.

I'am in the process off porting legacy software to the UniDAC components and the BOOLEAN_FIELD is just a plain Nullable Small Integer Field at this time.

When BooleanDomainFields is set to false should the UniDAC component return to standard behavour and allow null values.

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

Post by Plash » Wed 09 Sep 2009 08:21

When BooleanDomainFields = False, UniDAC works with such field as with normal SMALLINT field and allows NULL values.

Post Reply