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

--- Comment #12 from Robert Großkopf <rob...@familiegrosskopf.de> ---
Have tested this again. Nothing changed.

@Julien: The way you described is the workaround I have also written in Base
Handbuch:

SELECT RDB$FIELD_NAME, RDB$RELATION_NAME,
RDB$GENERATOR_NAME FROM RDB$RELATION_FIELDS WHERE
RDB$GENERATOR_NAME IS NOT NULL;

You could see the name for the generator. It is the same way autovalue is
implemented.

SELECT GEN_ID(RDB$1, 1) FROM RDB$DATABASE;

Generator with name RDB$1 is asked for the next generated value.

INSERT INTO "Table" ("ID", "Field") VALUES (<generated value>, 'Test');

This is the only save mode to get the right data after you inserted a new row:
First the value will be blocked for AutoValue, then this blocked value will be
used for insert.

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

Reply via email to