Hello,

Carlos Guzmán Álvarez said the following on 10.03.2006 17:53:

> A sample like this , looks as working:

I think it was meant something like this:


CREATE EXCEPTION TEST_EXCEPTION 'Test';

SET TERM ^ ;

CREATE PROCEDURE SP_EXCEPTION_TEST
RETURNS (
    ID INTEGER)
AS
BEGIN
  ID = 0;
  WHILE( ID < 10) DO BEGIN
    IF(ID > 5) THEN BEGIN
      EXCEPTION TEST_EXCEPTION 'Huch!!!';
    END
    SUSPEND;
    ID = ID + 1;
  END
END^

SET TERM ; ^

and then

"select * From SP_EXCEPTION_TEST"

-- 
Oleg



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to