Re: CoreData: Using to-may relationships in fetch request predicates
Re: CoreData: Using to-may relationships in fetch request predicates
- Subject: Re: CoreData: Using to-may relationships in fetch request predicates
- From: Frank Illenberger <email@hidden>
- Date: Fri, 21 Aug 2009 17:31:05 +0200
"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.
Yes, I am using an sqlite store, but I tried it with the other store
types and it did not work either. What would a working predicate look
like for other store types?
Solution: Use another store type (probably not an appealing option)
or bring in the ANY side, then filter the employees.dateOfBirth in
memory.
Sadly, in-memory filtering is not an option for it has to happen in a
single fetch.
_______________________________________________
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