• 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: Sat, 6 Mar 2010 21:17:32 -0500
  • Organization: Rogue Research Inc.

On 3/5/10 5:52 PM, Mark Sanvitale said:

>However, my experience seems to demonstrates that the statement "We (the
>system) cannot necessarily translate "arbitrary" predicates into SQL
>queries" is also true,

It definitely is.

>and I believe this concept should be expanded to
>spell out exactly what generally legal predicates end up being illegal
>when applying them to a Core Data context that is backed by SQL.  The
>only expanded discussion I can find on this subject in the official docs
>is, "predicates that rely on Cocoa cannot work", which, for me, does not
>shed enough light on the subject.

I agree the docs are weak here.  I haven't looked in a while, but I
don't recall seeing a list of which types of predicate don't with the
SQL store.  I've found this frustrating as I, like you, know nothing of SQL.

The tools are also weak here.  I don't know of any way for the compiler
or static analysis tool to warn when a predicate will not work.  But
you'll find out at run time. :)  In my case, it was painful because we
switched from the XML store to the SQL store and it took a while to
shake out all the 'bad' predicates.

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

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>)
 >Re: predicate for a Core Data fetch request rejected by SQL (From: "Sean McBride" <email@hidden>)
 >Re: predicate for a Core Data fetch request rejected by SQL (From: Joanna Carter <email@hidden>)
 >Re: predicate for a Core Data fetch request rejected by SQL (From: Mark Sanvitale <email@hidden>)

  • Prev by Date: Re: Hot to move focus to a button?
  • Next by Date: UIView as opposed to UIViewController...
  • Previous by thread: Re: predicate for a Core Data fetch request rejected by SQL
  • Next by thread: [NSTableview] can't make selected text stay black
  • Index(es):
    • Date
    • Thread