[rules-dev] need advice re null handling
Michael Neale
michael.neale at gmail.com
Thu Mar 15 18:33:19 EDT 2007
yeah, exactly.
>From a rules point of view - do we care about nulls? for numbers? I guess
numbers can be special if needed - any type can be treated specially.
maybe for numbers null == 0 ?
On 3/15/07, Mark Proctor <mproctor at codehaus.org> wrote:
>
> if bar is an integer it will be 0, if its an Integer it will be null. The
> Q is do we make Integer work like the primitive, or do we make it work like
> an Object.
>
> Mark
> Michael Neale 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.orghttps://lists.jboss.org/mailman/listinfo/rules-dev
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20070316/31a06732/attachment.html
More information about the rules-dev
mailing list