Subject | Re: [firebird-support] MySQL Migration Trigger Issue |
---|---|
Author | Lester Caine |
Post date | 2007-04-03T05:26:33Z |
Kurt Federspiel wrote:
New data is INSERTED, the UPDATE trigger is only used when you UPDATE existing
records in the table. This way you can have different actions for insert and
update, although you can now use the same trigger for both.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php
>> --- Martijn Tonies <m.tonies@...> wrote:Why? It's a statement of fact
>>
>>> I have data going into the Data table, but
>>> new_data is not being updated. Since there is no
>>> dirty read,
>> Do note, that your trigger is set to fire on UPDATE,
>> not INSERT.
>
> Oh, please....that was pathetic.
New data is INSERTED, the UPDATE trigger is only used when you UPDATE existing
records in the table. This way you can have different actions for insert and
update, although you can now use the same trigger for both.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php