From 0f2854fe17b81a0f83dbbd154a2aeca49b50e256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 10 Aug 2016 08:26:43 +0200 Subject: [PATCH] CHANGELOG.md --- CHANGELOG.md | 7 +++++++ TODO.md | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9c955f54..eec65bc98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Release Notes ============= +## Next Version + +**New** + +- Persistable `update`, `exists` and `delete` methods now work with objects that have a nil primary key. They used to crash. + + ## 0.79.0 Released August 8, 2016 diff --git a/TODO.md b/TODO.md index 3bd53b60a..87e44a73c 100644 --- a/TODO.md +++ b/TODO.md @@ -3,8 +3,8 @@ - [ ] @hdlj: Check RAM pressure - [ ] Table builder: allow several foreign keys on a columns - [ ] Table builder: allow checks on a columns -- [ ] Record.exists(db) should return false when primary key is nil -- [ ] Record.update(db) should throw, not crash, when primary key is nil +- [X] Record.exists(db) should return false when primary key is nil +- [X] Record.update(db) should throw, not crash, when primary key is nil - [ ] Fatal Error when MutablePersistable.update(_:columns:) is given columns that do not exist in the database. - [ ] What is the behavior inTransaction and inSavepoint behaviors in case of commit error? Code looks like we do not rollback, leaving the app in a weird state (out of Swift transaction block with a SQLite transaction that may still be opened). - [ ] GRDBCipher: remove limitations on iOS or OS X versions