Subject | Re: [ib-support] Firebird View Triggers |
---|---|
Author | Doug Chamberlin |
Post date | 2002-06-03T11:45:14Z |
At 06/03/2002 04:21 AM (Monday), Svein Erling Tysvær wrote:
a gen_id(Partner_id,0) to retrieve the same value a second time. However,
Set's advice above applies equally well to this situation. In fact, it is
required for the intent of the original code to be realized reliably.
>Generators are not subject to transaction control, so there is no guaranteeJust to be clear: The original code used a gen_ID(Partner_id,1) followed by
>that using gen_id(Partner_id, 1) will yield two consecutive numbers when
>issued twice within a trigger. Rather than using gen_id twice, use it once
>assigning it to a variable and then use this variable when inserting into
>tables/views.
a gen_id(Partner_id,0) to retrieve the same value a second time. However,
Set's advice above applies equally well to this situation. In fact, it is
required for the intent of the original code to be realized reliably.