Article View: borland.public.interbase.sql
Article #421Re: Trigger do not fire situations
From: Marian
Date: Fri, 07 Mar 2008 12:44
Date: Fri, 07 Mar 2008 12:44
44 lines
2290 bytes
2290 bytes
And ... Yes I commited "Thomas Steinmaurer" <t.steinmaurer_dontbugmewithspam@upscene.com> wrote in message news:47d1251a$1@newsgroups.borland.com... > Marian, > >> I have a trigger after update wich fire a stored procedure execution. >> If I make the update from IBConsole the trigger fire. >> From an IBX IBSQL component ... nothing. >> Transactions are read commited and separate for each IBX and table >> trigger. >> Is there a catch ? >> >> IBSQL sql: >> update BON_CASA >> set >> NRBON=:nrbon >> where CODDOC=:coddoc >> >> >> CREATE TRIGGER "UPDATE_RAPORTX" FOR "BON_CASA" >> ACTIVE AFTER UPDATE POSITION 1 >> AS >> DECLARE VARIABLE INCASARE_LIBERA_V BOOLEAN; >> BEGIN >> INCASARE_LIBERA_V=FALSE; >> IF (NEW.NRBON<>OLD.NRBON) >> THEN EXECUTE PROCEDURE INSERT_BON_RAPX(BON_CASA.CODDOC, >> :INCASARE_LIBERA_V, BON_CASA.CODGEST); >> END > > * Do you commit the transaction? > * Any chance that either NEW.NRBON or OLD.NRBON is NULL? In this case, you > won't get to the EXECUTE PROCEDURE statement > > > > -- > Best Regards, > Thomas Steinmaurer > LogManager Series - Logging/Auditing Suites supporting > InterBase, Firebird, Advantage Database, MS SQL Server and > NexusDB V2 > Upscene Productions > http://www.upscene.com
Technical Details
Message-ID:
<47d138a9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47d11c5a$1@newsgroups.borland.com> <47d1251a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,713b46d74dfd39a1 X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Marian" <marian@dammt.com> From: "Marian" <marian@dammt.com> Newsgroups: borland.public.interbase.sql References: <47d11c5a$1@newsgroups.borland.com> <47d1251a$1@newsgroups.borland.com> Subject: Re: Trigger do not fire situations Date: Fri, 7 Mar 2008 14:44:25 +0200 Lines: 46 Organization: Home X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 NNTP-Posting-Host: 82.76.59.81 Message-ID: <47d138a9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204893865 82.76.59.81 (7 Mar 2008 04:44:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail