• 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: predicate for a Core Data fetch request rejected by SQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: predicate for a Core Data fetch request rejected by SQL
      • From: Joanna Carter <email@hidden>
References: 
 >predicate for a Core Data fetch request rejected by SQL (From: Mark Sanvitale <email@hidden>)
 >Re: predicate for a Core Data fetch request rejected by SQL (From: Joanna Carter <email@hidden>)

  • Prev by Date: Re: Custom View in Toolbar
  • Next by Date: Re: predicate for a Core Data fetch request rejected by SQL
  • Previous by thread: Re: predicate for a Core Data fetch request rejected by SQL
  • Next by thread: Re: predicate for a Core Data fetch request rejected by SQL
  • Index(es):
    • Date
    • Thread