• 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
why not true when testing for equality with a null query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why not true when testing for equality with a null query


  • Subject: why not true when testing for equality with a null query
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Thu, 7 Dec 2006 09:32:04 -0800

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)))

Do I have to set the bindings if the variable is null? Because I do: ( thus not setting the bindings for the $areaID)

    	public WODisplayGroup			groups;
	if ( curArea != null )
		groups.queryBindings().setObjectForKey( curArea.areaID(), "areaID");
	etc.
----
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
  • Follow-Ups:
    • Re: why not true when testing for equality with a null query
      • From: Pierre Bernard <email@hidden>
    • Re: why not true when testing for equality with a null query
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Question about Session
  • Next by Date: Re: Question about Session
  • Previous by thread: Re: Question about Session
  • Next by thread: Re: why not true when testing for equality with a null query
  • Index(es):
    • Date
    • Thread