Subject | RE: [ib-support] Re: expression evaluation |
---|---|
Author | Alan McDonald |
Post date | 2002-12-21T22:15:36Z |
Lauri,
You could just test for null, as well, in your SP...
It's more code but it would give you what you want.
Alan
-----Original Message-----
From: Lauri Zoova [mailto:dec@...]
Sent: Sunday, 22 December 2002 3:26 AM
To: ib-support@yahoogroups.com
Subject: [ib-support] Re: expression evaluation
Helen Borrie wrote:
This is was not an option in my case. I needed the null state as well.
would seem at first. Needlessly i dare say.
logical if null be considered a valueless state, not unknown. Or
whatever, as long as - [field with a value] <> null = true.
I really can not think of any use for unknown state or a boolean
condition that can evaluate to unknown. I guess it's my limited mind :))
Anyway i got my answer and i guess i will just have to live with it.
BR,
Lauri
(Lets make a new standard! - the Bill Gates way of solving problems :)
To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
You could just test for null, as well, in your SP...
It's more code but it would give you what you want.
Alan
-----Original Message-----
From: Lauri Zoova [mailto:dec@...]
Sent: Sunday, 22 December 2002 3:26 AM
To: ib-support@yahoogroups.com
Subject: [ib-support] Re: expression evaluation
Helen Borrie wrote:
> Yes, it is dictated by both the standard and Boolean logic. If you wouldtrigger.
> prefer to simplify *your* logic, so that new.field <> old.field always
> gives true when not (new.field = old.field) then make the columns in
> question non-nullable and enforce a default value via a Before Insert
This is was not an option in my case. I needed the null state as well.
> "Inconvenient" is strange. After all, you only write the trigger once.I meant that doing this kind of simple check is more complicated than it
would seem at first. Needlessly i dare say.
> [...]So we are back at the beginning :)
> Just remember that if new.field and old.field are both null, you won't get
> True on an equivalence comparison either...
> I think you'll learn to know and love null, all the same. <g>Oh i love nulls.. i just don't like how they are evaluated. It would be
logical if null be considered a valueless state, not unknown. Or
whatever, as long as - [field with a value] <> null = true.
I really can not think of any use for unknown state or a boolean
condition that can evaluate to unknown. I guess it's my limited mind :))
Anyway i got my answer and i guess i will just have to live with it.
BR,
Lauri
(Lets make a new standard! - the Bill Gates way of solving problems :)
To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/