Subject | Re[2]: [firebird-support] NULL and equality |
---|---|
Author | Nando Dessena |
Post date | 2004-05-28T13:15:34Z |
Paul,
PV> it should have been "to null". I've ranted about this before.
Not sure I agree. The only problem I see is that the "=" symbol is
overloaded as both equality and assignment operator. "assign NULL to a
field" (hence using the assignment operator) looks more consistent to
me than inventing a different syntax just for nulls.
Ciao
--
Nando mailto:nandod@...
>> I always know that you can't compare NULL to anything but I must sayPV> Totally agree! For comparison you must use "is null" so for assignment
>> it's just a little ambiguous to have say
>> update table set field=NULL
>> instead of
>> update table set field to null
>> As infrequently as I use this statement, I find myself writing the
>> latter and having to correct myself to the former.
PV> it should have been "to null". I've ranted about this before.
Not sure I agree. The only problem I see is that the "=" symbol is
overloaded as both equality and assignment operator. "assign NULL to a
field" (hence using the assignment operator) looks more consistent to
me than inventing a different syntax just for nulls.
Ciao
--
Nando mailto:nandod@...