Subject Re: [firebird-support] Strange errors while creating a trigger
Author Helen Borrie
At 01:58 PM 25/02/2005 +0200, you wrote:

>Hi Ivan
>
>Thanks for your quick reply. Also thanks to Martijn. The maxLogID variable
>issue is fixed - as you mentioned, the "select" statement was too much.

Also
maxLogID = (select gen_id("LogTable_GEN", 0)
from RDB$DATABASE);
is not valid PSQL. It would have to be

select gen_id("LogTable_GEN", 0) from RDB$DATABASE
into :MaxLogID;

But, as others pointed out, calling GEN_ID() directly is cheaper.

./helen