{"action":"closed","issue":{"url":"https://api.github.com/repos/SugarRecord/SugarRecord/issues/144","labels_url":"https://api.github.com/repos/SugarRecord/SugarRecord/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/SugarRecord/SugarRecord/issues/144/comments","events_url":"https://api.github.com/repos/SugarRecord/SugarRecord/issues/144/events","html_url":"https://github.com/SugarRecord/SugarRecord/issues/144","id":66982923,"number":144,"title":"NSPredicate - Unable to generate SQL for predicate","user":{"login":"avielg","id":5012557,"avatar_url":"https://avatars.githubusercontent.com/u/5012557?v=3","gravatar_id":"","url":"https://api.github.com/users/avielg","html_url":"https://github.com/avielg","followers_url":"https://api.github.com/users/avielg/followers","following_url":"https://api.github.com/users/avielg/following{/other_user}","gists_url":"https://api.github.com/users/avielg/gists{/gist_id}","starred_url":"https://api.github.com/users/avielg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avielg/subscriptions","organizations_url":"https://api.github.com/users/avielg/orgs","repos_url":"https://api.github.com/users/avielg/repos","events_url":"https://api.github.com/users/avielg/events{/privacy}","received_events_url":"https://api.github.com/users/avielg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T20:27:08Z","updated_at":"2015-04-09T20:17:51Z","closed_at":"2015-04-09T20:17:51Z","body":"There is a problem with `setPredicate` method in `SugarRecordFinder` where missing quotes symbols causes the app to crash when filtering an entity with `by` method.\r\nThe simple solution is to switch this line (SugarRecordFinder.swift:267)  \r\n\r\n    self.predicate = NSPredicate(format: \"\\(key) == \\(value)\")\r\n\r\nWith this:\r\n\r\n    self.predicate = NSPredicate(format: \"\\(key) == '\\(value)'\")\r\n\r\nThis problem is mentioned (and solved the same way) here: http://stackoverflow.com/a/7662353/2242359"}}