What does the generated SQL look like?

I don't use display groups, so I don't know. You might want to try setting EOKeyValueCoding.NullValue in place of the null.

Chuck


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

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to