[rules-dev] need advice re null handling
Steven Williams
stevearoonie at gmail.com
Thu Mar 15 02:06:09 EDT 2007
I agree with SQL. If you also want to catch null you could do
Foo(field > 3 | == null)
cheers
Steve
On 3/15/07, Michael Neale <michael.neale at gmail.com> wrote:
>
> http://jira.jboss.com/jira/browse/JBRULES-627
>
> OK, this much is clear:
>
> Foo(field == null) can be true if field is null.
>
> but, what about Foo(field > 3), and field is null? should that be false?
> what about Foo(field != 3) - should that be true?
>
> in SQL, null will always result in a false condition, unless you
> explicitly use null.
>
> Thoughts?
>
> Michael.
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
--
Steven Williams
Supervising Consultant
Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
stevenw at objectconsulting.com.au
www.objectconsulting.com.au
consulting | development | training | support
our experience makes the difference
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20070315/3b8fb171/attachment.html
More information about the rules-dev
mailing list