Subject Re: [firebird-support]
Author Anderson Farias
Hi,

What's your trigger code? If you have something like :


if (new.field<>old.field) then
{...}


Be aware that if new.field or old.field is NULL than it will aways evaluate
to FALSE since null is not a value but a state (something like "unknown").
If that's the case then, test for nulls or, if using new FB versions, change
that to:

if (new.field is distinct from old.field) then
{...}


Regards,
Anderson Farias




----- Original Message -----
From: "Olaf Kluge" <olaf.kluge@...>
To: <firebird-support@yahoogroups.com>
Sent: Monday, July 20, 2009 11:54 AM
Subject: [firebird-support]


> Hello,
>
> I have already a big problem. Thanks for your helping hand.
>
> If I change a value direct in my IB-Manager, the trigger of one table
> (after
> update) works fine. If I change the value over odbc (microsoft access),
> the
> value is changed, but the trigger doesn't works. I mean, if I change a
> value
> to null, the trigger works not over odbc, but only in one table not. If I
> change the value to another number, it works very well. Both inputs I have
> made in the linked table direct.
>
> If I change the value to null in my IB-Manager, the trigger works very
> well.
>
> The problem was never with the version 2.0 of firebird. Now I have version
> 2.1.1.
>
> Is this a bug? Should I update my firebird-installation=
>
> Thank you very much for your fast answer.
>
>
> Olaf Kluge
>
>
>
>