Subject | Re: [firebird-support] Generator and Trigger confusion ? |
---|---|
Author | Woody (TMW) |
Post date | 2003-11-11T18:22:21Z |
> Fred,all
>
> >>We *never* allow an application (user) to supply the PK value.
>
> I do it all the time. :-)
>
> It's quite easy to define a PK value in the client, post the data, and
> 'refresh' the values from the server using the primary key to identify the
> row. A trigger will guarantee that a PK get's the value if the client
> doesn't provide it.
>
> We don't care about any 'jumps' in values, we use just one generator to
> tables. I have lot's of this 'jumps', but since the generator worksoutside
> the transaction, I just get a unique identifier of the row. I really don'tit
> care about a generator value - it could be positive, negative, as long as
> really is unique. And it always is.I get/assign the generator values from the client as well. The main reason
>
is that you have immediate access to the value for use in creating child
records, etc. If the value is assigned at the server, you have to re-query
in order to obtain the value.
Woody (TMW)
Freeware Page: http://users.eonet.net/woodytmw
All computers wait at the same speed.