🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #419

Re: Trigger do not fire situations

#419
From: Thomas Steinmaurer
Date: Fri, 07 Mar 2008 11:21
40 lines
2009 bytes
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: <47d1251a$1@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-mail
References: <47d11c5a$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
Date: Fri, 07 Mar 2008 12:21:54 +0100
From: Thomas Steinmaurer <t.steinmaurer_dontbugmewithspam@upscene.com>
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: Trigger do not fire situations
References: <47d11c5a$1@newsgroups.borland.com>
In-Reply-To: <47d11c5a$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.186.164.88
Message-ID: <47d1251a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204888858 193.186.164.88 (7 Mar 2008 03:20:58 -0700)
Lines: 40
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