Subject | Re: [IBO] Generators don't increment anymore |
---|---|
Author | Woody |
Post date | 2007-12-18T17:21:18Z |
Arn wrote:
NULL. If that's the case, the trigger will not set the field to the next
generator value. Have you tried testing for NULL or zero in the trigger
to see if that works?
Woody (TMW)
> Martijn:It's possible that the field isn't being passed to the trigger as being
>
> If i do:
>
> insert into t1( mycode, field1 ) values ( gen_id( gen_t1_id,1), 'test' )
> all works fine.
>
> Generator is incremented and mycode receive the RIGHT value
> Mycode is the Primary Key.
>
> So the problem IS NOT Firebird.
>
NULL. If that's the case, the trigger will not set the field to the next
generator value. Have you tried testing for NULL or zero in the trigger
to see if that works?
Woody (TMW)