Subject | RE: [firebird-support] Re: Help with triggers... |
---|---|
Author | Mercea Paul |
Post date | 2007-08-03T05:24:50Z |
Adam
You are right but the example was from README.context_variables
(copy-paste). Sorry.
Best regards,
Paul
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Adam
Sent: Friday, August 03, 2007 8:01 AM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Re: Help with triggers...
I think she wants to know how to know whether a particular column was
impacted by an update, not whether a trigger is being fired because of
an insert, update or delete.
(By the way, you can't assign a value to NEW.<anything> inside a
delete trigger)
Adam
[Non-text portions of this message have been removed]
You are right but the example was from README.context_variables
(copy-paste). Sorry.
Best regards,
Paul
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Adam
Sent: Friday, August 03, 2007 8:01 AM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Re: Help with triggers...
>Paul,
> Ex: IF (INSERTING OR DELETING) THEN NEW.ID = GEN_ID(G_GENERATOR_1, 1);
>
I think she wants to know how to know whether a particular column was
impacted by an update, not whether a trigger is being fired because of
an insert, update or delete.
(By the way, you can't assign a value to NEW.<anything> inside a
delete trigger)
Adam
[Non-text portions of this message have been removed]