Subject | Re: [firebird-support] Re: Generators and Stored Procedures |
---|---|
Author | Florian Hector |
Post date | 2005-06-17T19:57:14Z |
>>CREATE PROCEDURE G (GNAME VARCHAR(31), GSTEP INTEGER)Sure does it work, just tried it:
>> RETURNS (GVAL BIGINT) AS
>>BEGIN
>> EXECUTE STATEMENT 'SELECT GEN_ID(' || UPPER(:GNAME) || ', '
>
> || :GSTEP || ') FROM RDB$DATABASE'
>
>> INTO :GVAL;
>>END
>>
>>Ivan
>
>
> Obviously you havn't tried this...it doesn't work.
>
------ Performance info ------
Prepare time = 0ms
Execute time = 0ms
Current memory = 959.024
Max memory = 1.091.776
Memory buffers = 2.048
Reads from disk to cache = 0
Writes from cache to disk = 0
Fetches from cache = 10
Prozedur Resultat:
GVAL = 5