CoreData doesn't fetch property with name 'no'
| Originator: | busi.andrea | ||
| Number: | rdar://21679603 | Date Originated: | 06-Jul-2015 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 8.4 |
| Classification: | Reproducible: | Yes |
Summary: CoreData fail to fetch entity on property named 'no'. If a fetch request is executed on that entity, no results are returned. See the attached example for a better description. Steps to Reproduce: 1. Create an entity with two property: 'no' (Int) and 'name' (String) 2. Set-up CoreData 3. Create a NSFetchRequest with a simple predicate as NSPredicate(format: "no == % d", someValue) 4. Execute the fetch 5. No results are returned If the 'no' property is renamed as 'number' the issue disappear. Expected Results: The filtered records Actual Results: No records Version: iOS 8.4 Notes: I can reproduce this error all the time. I attached a sample project to demonstrate this issue. Configuration: iOS Simulator Attachments: 'CoreDataBugNoProperty.zip' was successfully uploaded.
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!