Subject | RE: [firebird-support] After insert or after update trigger |
---|---|
Author | Alan McDonald |
Post date | 2004-06-10T21:37:12Z |
> Is there some way to create a trigger what works both after insert andWhy don't you just set the default for the field as 'NOW'. I think you are
> after update?
> someting like:
>
> CREATE TRIGGER MyTrigger FOR MyTable AFTER INSERT OR AFTER UPDATE
> POSITION 0 AS
> BEGIN
>
> if (new.MyDateField='30.12.1899') then update MyTable set
> MyDateField=null where ID=new.ID;
>
> END
>
seeing a null date being returnf to delphi.
Alan