Article View: borland.public.interbase.sql
Article #422Re: Trigger do not fire situations
From: Marian
Date: Fri, 07 Mar 2008 12:55
Date: Fri, 07 Mar 2008 12:55
46 lines
2427 bytes
2427 bytes
Apologize Tom ! Old. was null. Thank you very much. "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:
<47d13b25@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!feed.news.schlund.de!schlund.de!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:55:01 +0200 Lines: 48 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: <47d13b25@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204894501 82.76.59.81 (7 Mar 2008 04:55:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail