Default values are ignored

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Default values are ignored

Post by Thomas J. » Fri 09 Jan 2009 05:49

Hello Support,

I use a MySQL db and have a column with NOT NULL and default value 0.
with MyDAC I had no problem to post new record without setting the column deu to default value in database. But now with UniDAC I get for each column an error. Something like "Fiel 'n_number' cannot be null"

Is there any option to solve the problem?

Thanks
Thomas

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

Post by Plash » Fri 09 Jan 2009 14:48

You can set the RequiredFields option of TUniQuery to False to get the same behaviuor as in MyDAC.

Post Reply