Fix failing tests for #999

This commit is contained in:
Gwendal Roué committed 2021-06-27 15:36:12 +02:00
1 parent ff576d945c
commit 2f36fc06f5
1 file changed
+1 -4
+1 -4
View File
@@ -967,10 +967,7 @@ extension PersistenceContainer: ColumnAddressable {
func index(forColumn column: String) -> String? { column }
@inline(__always)
func databaseValue(at column: String) -> DatabaseValue {
guard let value = self[caseInsensitive: column] else {
fatalError("Missing column: \(column)")
}
return value.databaseValue
self[caseInsensitive: column]?.databaseValue ?? .null
}
}