https://bugs.documentfoundation.org/show_bug.cgi?id=105220

Julien Nabet <serval2...@yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2...@yahoo.fr

--- Comment #11 from Julien Nabet <serval2...@yahoo.fr> ---
Just for the record because I'm not sure it could help here, I found a 2 steps
way to do this:
1) Retrieve the generator name

SELECT relfields.RDB$generator_name
        FROM RDB$RELATION_FIELDS relfields
        JOIN RDB$FIELDS fields
        on (fields.RDB$FIELD_NAME = relfields.RDB$FIELD_SOURCE)
        WHERE (1 = 1)
        AND relfields.RDB$RELATION_NAME = '<table>'

2) Use specific Firebird function
SELECT GEN_ID( "<generator name>", 0 ) FROM RDB$DATABASE;

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to