Predicate with format "ALL keyPaths IN %@" with empty collection always return YES.
| Originator: | pitiphong.ph | ||
| Number: | rdar://16299844 | Date Originated: | 12-Mar-2014 07:35 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Predicate with format "ALL keyPaths IN %@" with empty collection and empty value for keypath always return YES. Steps to Reproduce: 1. Create a predicate with format like @"ALL keyPath in %@" with empty collection. 2. Has a collection with a model object which keyPath value also is empty collection. 3. Filter collection with predicate. Expected Results: Return an empty collection. Predicate evaluate as NO. Actual Results: Return a collection with that model. Predicate evaluate as YES.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!