dbTalk Databases Forums  

[Info-ingres] raise error

comp.databases.ingres comp.databases.ingres


Discuss [Info-ingres] raise error in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sergio
 
Posts: n/a

Default [Info-ingres] raise error - 11-02-2005 , 10:50 AM






I use a "raise error" statement in a data base procedure that is called by rule and this rule is fired by another data base procedure.
Example :

dpb_1 = BEGIN
UPDATE table
SET colum = 1

END;

rule_1 (execute procedure dbp_2 after update (colum) on table );

dpb_2 = BEGIN

RAISE ERROR 19001 ' Error message';

END;

I want to know the value of raise error ( 19001 ) in the first data base procedure.

Thanks, Sergio

Reply With Quote
  #2  
Old   
Roy Hann
 
Posts: n/a

Default Re: [Info-ingres] raise error - 11-02-2005 , 02:20 PM






"Sergio" <sergio.sperandio66 (AT) tin (DOT) it> wrote

Quote:
I use a "raise error" statement in a data base procedure that is called by
rule and this rule is
fired by another data base procedure.
[snip]
I want to know the value of raise error ( 19001 ) in the first data base
procedure.

You can't. The documented behaviour is that then a rule fired procedure
gets an error it immediately loses control and the statement that caused the
rule to execute the procedure also gets rolled back.

Roy




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.