Re-[SOLVED] why not true when testing for equality with a null query
Re-[SOLVED] why not true when testing for equality with a null query
- Subject: Re-[SOLVED] why not true when testing for equality with a null query
- From: Baiss Eric Magnusson <email@hidden>
- Date: Thu, 7 Dec 2006 18:24:39 -0800
Thanks Chuck & Pierre,
< NSKeyValueCoding.NullValue> is the winning ticket, as in:
if ( curArea != null ) groups.queryBindings().setObjectForKey
( curArea.areaID(), "areaID");
else groups.queryBindings().setObjectForKey
( EOKeyValueCoding.NullValue, "areaID");
if ( curState != null ) groups.queryBindings().setObjectForKey
( curState.stateID(), "stateID");
else groups.queryBindings().setObjectForKey
( EOKeyValueCoding.NullValue, "stateID");
if ( curRegion != null ) groups.queryBindings().setObjectForKey
( curRegion.regionID(), "regionID");
else groups.queryBindings().setObjectForKey
( EOKeyValueCoding.NullValue, "regionID");
On Dec 7, 2006, at 9:46 AM, Chuck Hill wrote:
On Dec 7, 2006, at 9:32 AM, Baiss Eric Magnusson wrote:
Wouldn't the following fetch the record if I don't set any value
for the 3 <$> variables, and the record in the DB has <null> for
the 3 fields?
((areaID = $areaID) or (stateID = $stateID) or (groupID = $groupID)
or ((areaID = stateID) and (areaID = groupID)))
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden