Article View: borland.public.interbase.sql
Article #820Abort a Trigger
From: Adalberto Baldini
Date: Sat, 12 May 2007 21:31
Date: Sat, 12 May 2007 21:31
24 lines
1360 bytes
1360 bytes
In Interbase 2007 I did :
CREATE TRIGGER AI_GIOCOGE FOR GIOCOGE
ACTIVE AFTER INSERT POSITION 0
AS
declare variable risultato boolean;
begin
execute procedure upd_sdocoge (......)
returning_values :risultato;
/* I think to put here some other execute procedure ... */
end
Procedure set error values with :
when any do
result = false;
When I test :risultato=False , as EXIT is not allowed in trigger, how
can I exit the trigger stopping it execution ?
Thanks
Adalberto Baldini
Technical Details
Message-ID:
<4646324d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,a5001e52ced62223,start X-Google-Attributes: gid114a0e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 12 May 2007 23:31:58 +0200 From: Adalberto Baldini <finman@swissonline.ch> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql Subject: Abort a Trigger Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.74.35.221 Message-ID: <4646324d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1179005517 84.74.35.221 (12 May 2007 14:31:57 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail