Subject | Re: [ib-support] Pls, help! What's wrong with this storedprocedure? |
---|---|
Author | Helen Borrie |
Post date | 2002-05-11T16:51:58Z |
At 09:54 AM 11-05-02 -0600, Todd Brasseur wrote:
required for a SP that simply returns output parameters.
regards,
Helen
Andrew Guts wrote:
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________
>I don't see how your procedure returns anything. There is no 'suspend'.Suspend is for outputting rows for a selectable stored procedure. It isn't
required for a SP that simply returns output parameters.
regards,
Helen
Andrew Guts wrote:
> >>>set term ^ ;All for Open and Open for All
> >>>create procedure AddRepForm (NAME VARCHAR(80)) RETURNS (ID INTEGER)
> >>>as
> >>> DECLARE VARIABLE NewID integer;
> >>>begin
> >>> NewID = GEN_ID(G_RFORM_ID, 1);
> >>> insert into RepForms (ID, Name) VALUES (:NewID, :Name);
> >>> ID = NewID;
> >>>end^
> >>>set term ; ^
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________