Subject | Re: [firebird-support] Re: Generators and Stored Procedures |
---|---|
Author | Ivan Prenosil |
Post date | 2005-06-20T06:02:44Z |
>> CREATE PROCEDURE G (GNAME VARCHAR(31), GSTEP INTEGER)Did you get error message (which one?) or wrong result ?
>> RETURNS (GVAL BIGINT) AS
>> BEGIN
>> EXECUTE STATEMENT 'SELECT GEN_ID(' || UPPER(:GNAME) || ', '
> || :GSTEP || ') FROM RDB$DATABASE'
>> INTO :GVAL;
>> END
>>
>
> Obviously you havn't tried this...it doesn't work.
Ivan