Subject | RE: [firebird-support] Generators, revisited |
---|---|
Author | Helen Borrie |
Post date | 2004-09-12T15:07:40Z |
At 07:40 AM 12/09/2004 -0700, you wrote:
getting dups in these keys, you can bet your life that you have some
application or trigger code that is fiddling with generator values.
demolished it, you can "set and forget".
I think you might be a bit misguided about retrieving generators in IBO, as
well. To put it simply, you *don't* have to retrieve them with an explicit
query in IBO. If you want more information, ask in the IBO list.
./heLen
>This is a bit scary - the possibility of generators returning invalidAs it is, you can be assured on that.
>numbers - numbers already used. If generators truly worked outside the
>transaction, the number should be incremented whenever called upon.
>I got most of the code below from Ann and Helen - Ann regarding the actualIt's not a question "proper transaction handling". If you really are
>SQL statement and Helen for the proper retrieval using the IBO TIB_DSQL
>component with proper transaction handling.
getting dups in these keys, you can bet your life that you have some
application or trigger code that is fiddling with generator values.
>I'm going to have to go overboard on code now in my Delphi app to make sureTo fix a current mess, yes. But once you have found that evil code and
>the numbers generated don't already exist in the system.
demolished it, you can "set and forget".
I think you might be a bit misguided about retrieving generators in IBO, as
well. To put it simply, you *don't* have to retrieve them with an explicit
query in IBO. If you want more information, ask in the IBO list.
./heLen