On 23 Apr 2009, at 15:03, Jerry Krinock wrote:


On 2009 Apr 23, at 05:18, Mike Abdullah wrote:

OK, so I'm trying to wrap my head around this. Let's say I build a predicate along the lines of:

fooPersistent == 123 && fooTransient == 456

And then use it in a fetch request. Does Core Data:

A) Pass that predicate straight to SQLite which fails because it can't find a fooTransient column. B) Pass that predicate straight to SQLite which ignores fooTransient (presumably treating it as always evaluating to true).
C) Create a "fooPersistent == 123" predicate and pass that to SQLite.

Or of course D) something I've failed to conceive of which seems quite probable!

In my experience, before I read the documentation and learned not to put transient properties in my predicates, I found that fetches containing such predicates returned an empty array.

Ah, so that would be option A then I guess, if by "fail" we take it to be more "nothing matches the predicate." In which case, I guess it certainly would be quite a big change for Core Data to start handling transient attributes during fetches too.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to