README.md

This commit is contained in:
Gwendal Roué committed 2016-04-23 08:00:48 +02:00
1 parent 404bb0eafd
commit 2cc6d17014
1 file changed
-5
-5
View File
@@ -2570,11 +2570,6 @@ let name: String = row.value(named: "name")
// solution: fix the contents of the database, or load an optional:
let name: String? = row.value(named: "name")
// fatal error: could not convert "0000-00-00 00:00:00" to NSDate.
let date: NSDate? = row.value(named: "date")
// solution: fix the contents of the database, or allow explicit data loss with failable conversion:
let date: NSDate? = row.databaseValue(named: "date").failableValue()
// fatal error: Database methods are not reentrant.
dbQueue.inDatabase { db in
dbQueue.inDatabase { db in