• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re-[SOLVED] why not true when testing for equality with a null query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >why not true when testing for equality with a null query (From: Baiss Eric Magnusson <email@hidden>)
 >Re: why not true when testing for equality with a null query (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Instance recycle itself after a specific load point is reached
  • Next by Date: Re: Xcode and WOUnitTest 2
  • Previous by thread: Re: why not true when testing for equality with a null query
  • Next by thread: Re: why not true when testing for equality with a null query
  • Index(es):
    • Date
    • Thread