Hello,
I have a problem with Autoinc field. In my project I use Delphi 5, Firebird2.0 and Zeos 6.6.0 beta.
using TZQuery And TZUpdateSQL to insert record into table with primary key type AutoInc. when I post I recieve error (AutoInc field not assigned and is null).
I need your help. Thanks
Problem with Autoinc And TZQuery
Moderators: gto, cipto_kh, EgonHugeist
Autoinc fields don't exists on Firebird, you must provide from client side (before post is a good point to put it) or server side must provide it via before insert trigger.
If you have a before insert trigger to set the "autoinc" field, I suspect you have persistent fields for your TZQuery. Set "Required" to false in the "autoinc" field.
Regards.
If you have a before insert trigger to set the "autoinc" field, I suspect you have persistent fields for your TZQuery. Set "Required" to false in the "autoinc" field.
Regards.