From: Logan Capaldo Date: 2006-03-05T11:00:20+09:00 Subject: Re: Kirbybase Hacks NilClass --Apple-Mail-19-8044158 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 4, 2006, at 6:07 PM, angus wrote: > But doesn't NULL always propagate in "database semantics"? I mean, > if any > subexpression is NULL, the whole expression becomes NULL. It's the > expected > behaviour (but maybe not to the users of KirbyBase). In SQL, > normally, one > uses NVL(a, b) (with the meaning 'a.nil? ? b : a') to guard > subexpressions > against NULL. Well based on my intro to db class SQL uses a three-way boolean logic NULL or TRUE = TRUE NULL or FALSE = FALSE NULL and TRUE = NULL NULL and FALSE = FALSE not NULL = NULL Boolean ops involving only TRUE and FALSE work as usual --Apple-Mail-19-8044158--