Hello Andrew,
Thanks for your attention
Andrew Sullivan a écrit :
> I tried to answer the previous version of this mail, but I don't
> understand it. Let me see if my questions trigger something for you,
> though.
>
> So if I am reading you correctly, IF code IN (1,2) THEN {do
> something}? What do you do then? I don't get this part.
>
I record a row with code = 3 and the value = the sum of each values in
code 1 & 2
> I don't see how this is possible either. You just deleted from test;
> how can you hae anything left in there?
>
I skip the delete action when the code is a sum code
>
>> maybe this is because these commands start a transaction with a cache
>> and each time that I request a select for a sum code that are on the
>> cache the value returned are not the real new value.
>>
>
> No, but a trigger that executes SQL can cause the trigger to fire
> again. Are you sure that's not happening?
>
>
Yes I test this situation on my trigger.
I sure about 99% that my problem come from the cache.
Regards
Guy