Subject | Re: [IBO] insertSQL Help please |
---|---|
Author | Helen Borrie |
Post date | 2004-03-08T21:06:55Z |
At 04:30 PM 8/03/2004 -0400, you wrote:
if (new.ID is not null) then
new.ID = gen_ID (your_generator, 1);
The null test is essential if you are using generatorlinks, to avoid firing
the trigger when you already have the value.
Helen
>Thanks,Your trigger needs to be
>
>I do not see 2 blank rows, only the generator gets inc by 2. I have
>generatorlinks set, would that cause it? if generatorlinks is set I do
>not need a trigger?
if (new.ID is not null) then
new.ID = gen_ID (your_generator, 1);
The null test is essential if you are using generatorlinks, to avoid firing
the trigger when you already have the value.
Helen