Subject | Re: [firebird-support] Returning a value from a Stored Procedure |
---|---|
Author | Rik Barker |
Post date | 2006-05-19T10:52:14Z |
Hi Martijn,
Generators white paper yesterday. The ID field is a PK so it can't be null
or duplicated so I suppose the trigger is mostly redundant with the
modifications you showed me, but I'll leave it just in case.
Many thanks for your help. Your changes make perfect sense.
Cheers,
Rik
>Keep the trigger, but modify it slightly so that it will only assign a newMy trigger was already testing for null or zero after reading the Firebird
>value if there's no value for the ID column. Why? Well, if, for some
>reason, any application starts inserting new rows into that table, at
>least the new records will have IDs. If you don't want this, remove
>the trigger.
Generators white paper yesterday. The ID field is a PK so it can't be null
or duplicated so I suppose the trigger is mostly redundant with the
modifications you showed me, but I'll leave it just in case.
Many thanks for your help. Your changes make perfect sense.
Cheers,
Rik