Page 1 of 1

Default values are ignored

Posted: Fri 09 Jan 2009 05:49
by Thomas J.
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

Posted: Fri 09 Jan 2009 14:48
by Plash
You can set the RequiredFields option of TUniQuery to False to get the same behaviuor as in MyDAC.