Re: predicate for a Core Data fetch request rejected by SQL
Re: predicate for a Core Data fetch request rejected by SQL
- Subject: Re: predicate for a Core Data fetch request rejected by SQL
- From: "Sean McBride" <email@hidden>
- Date: Fri, 5 Mar 2010 17:34:58 -0500
- Organization: Rogue Research Inc.
On 3/5/10 10:18 PM, Joanna Carter said:
>> So, here is my plea for help. I have a predicate of the form:
>"<character string> BEGINSWITH path". In other words, I am searching
>entities that possess a (string) property "path" to look for one whose
>path is a prefix of some string (which is inserted into the predicate
>via the fetch-request-template variable substitution). This fetch
>executes just fine on an XML store. The same fetch on an SQL store
>yields: unimplemented SQL generation for predicate ("/Volumes/MacHD/
>Applications/Utilities" BEGINSWITH path).
>
>You need to think about how a predicate would work against a SQL store.
But you shouldn't have to... Core Data is "not a database" and its use
of SQL is an implementation detail. One shouldn't have to know anything
about SQL to use Core Data. Of course, in practice, such knowledge is
helpful, as you say.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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