• 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: CoreData: Using to-may relationships in fetch request predicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData: Using to-may relationships in fetch request predicates


  • Subject: Re: CoreData: Using to-may relationships in fetch request predicates
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 21 Aug 2009 11:23:00 -0400

On Aug 21, 2009, at 11:13 AM, Frank Illenberger wrote:

"ANY (employees.salary < %@ AND employees.dateOfBirth > %@"

But it doesn't. Does anybody know if there is a way to use the ANY statement with more than one condition?

Are you using the sqlite store type? "ANY" can't be used in a compound predicate (AND) with the sqlite store type.


Solution: Use another store type (probably not an appealing option) or bring in the ANY side, then filter the employees.dateOfBirth in memory.

--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CoreData: Using to-may relationships in fetch request predicates
      • From: Frank Illenberger <email@hidden>
References: 
 >CoreData: Using to-may relationships in fetch request predicates (From: Frank Illenberger <email@hidden>)

  • Prev by Date: CoreData: Using to-may relationships in fetch request predicates
  • Next by Date: Re: CoreData: Using to-may relationships in fetch request predicates
  • Previous by thread: CoreData: Using to-may relationships in fetch request predicates
  • Next by thread: Re: CoreData: Using to-may relationships in fetch request predicates
  • Index(es):
    • Date
    • Thread