Subject Re: [firebird-support] Is some API to get generator value?
Author Kjell Rilbe
Den 2011-03-10 09:37 skrev karolbieniaszewski såhär:
> is some API to get generator value?
> 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

Since others have replied there is no such API function, perhaps it's
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