Subject | Re: [firebird-support] How to 'lock' a table? |
---|---|
Author | Alexandre Benson Smith |
Post date | 2006-11-29T00:45:35Z |
Hi Fabiano,
I would change it to
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
I would change it to
>exit;
> set term !! ;
>
> create or alter procedure sp_test
> as
> declare variable v integer;
> begin
> if (gen_id(mygen, 0) <> 0) then
>
> v = gen_id(mygen, 1);I would avoid a tight empty loop, I think it will cause FB to use 100% CPU
>
> -- my stuff here
>
> v = gen_id(mygen, -1);
> end !!
>
> set term ; !!
>
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br