<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1589" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=025450516-15032007><FONT face=Arial color=#0000ff size=2>The
flexibility provided by an Object is very valuable. We use Integer and String
objects all over the place today in our facts with drools. I would
hate to give it up.</FONT></SPAN></DIV>
<DIV><SPAN class=025450516-15032007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=025450516-15032007><FONT face=Arial color=#0000ff size=2>Tom
G</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-dev-bounces@lists.jboss.org
[mailto:rules-dev-bounces@lists.jboss.org] <B>On Behalf Of </B>Mark
Proctor<BR><B>Sent:</B> Thursday, March 15, 2007 6:29 AM<BR><B>To:</B> Rules Dev
List<BR><B>Subject:</B> Re: [rules-dev] need advice re null
handling<BR></FONT><BR></DIV>
<DIV></DIV>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.<BR><BR>Mark<BR>Michael Neale wrote:
<BLOCKQUOTE cite=mid:96ab3ced0703142259q513d3170je37fbebc89040975@mail.gmail.com
type="cite"><A href="http://jira.jboss.com/jira/browse/JBRULES-627"
moz-do-not-send="true">http://jira.jboss.com/jira/browse/JBRULES-627</A><BR><BR>OK,
this much is clear: <BR><BR>Foo(field == null) can be true if field is
null.<BR><BR>but, what about Foo(field > 3), and field is null? should that
be false? what about Foo(field != 3) - should that be true? <BR><BR>in SQL,
null will always result in a false condition, unless you explicitly use
null.<BR><BR>Thoughts? <BR><BR>Michael.<BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-dev mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</A>
</PRE></BLOCKQUOTE><BR></BODY></HTML>