• 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: Joanna Carter <email@hidden>
  • Date: Fri, 5 Mar 2010 23:45:50 +0000

Hi Sean

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

You have a point but, in theory, predicates against lists of objects usually take either the form:

<value of a property> <operator> <constant value>

... or possibly:

<value of a property> <operator> <value of another property>

Some predicates might be usable between two constant values but I have never seen one used, even with lists of objects, as:

<constant value> <operator> <value of a property>

Such a construct might work in the context of an XML file because the lefthand term could be interpreted as the name of a key but, not normally in a where clause in a database.

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

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: Mark Sanvitale <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>)

  • Prev by Date: Re: predicate for a Core Data fetch request rejected by SQL
  • Next by Date: Re: [NSTableview] can't make selected text stay black
  • 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