Subject | Re: [firebird-support] Is some API to get generator value? |
---|---|
Author | Kjell Rilbe |
Post date | 2011-04-12T07:54:03Z |
Den 2011-03-10 09:37 skrev karolbieniaszewski såhär:
worth sontemplating what's "cheaper":
1. start trans, read generator, commit
or:
2. start trans, read generator, rollback
Anyone?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> is some API to get generator value?Since others have replied there is no such API function, perhaps it's
> or only possible way is
> select GEN_ID(gen_name, 0) from RDB$Database
>
> i ask because this is stupid to start transaction to get non
> transactional object value
worth sontemplating what's "cheaper":
1. start trans, read generator, commit
or:
2. start trans, read generator, rollback
Anyone?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64