mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Problem with NSDate on queryAttributes result #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roceller on GitHub (Sep 1, 2016).
Example code:
let localData = CoreStore.queryAttributes( From(ModelUserFollowingXref), Select("ufxUserId", "ufxStatus", "ufxCreated", "ufxUpdated"), Where("ufxUserId == %@", row.1["ufx_user_id"].intValue) && Where("userId == %@", row.1["user_id"].intValue) )The result dictionary is not quoted and the NSDate field is causing issue when converting to JSON..
[[ufxCreated: 2016-07-20 23:27:59 +0000, ufxUpdated: 2016-07-20 23:28:03 +0000, ufxUserId: 151989, ufxStatus: 0]]@roceller commented on GitHub (Sep 1, 2016):
Nevermind... I didn't have to convert to JSON.