We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ebe9b commit bad16cbCopy full SHA for bad16cb
Sources/SQLite/Typed/Coding.swift
@@ -504,9 +504,8 @@ private class SQLiteDecoder: Decoder {
504
case is UUID.Type:
505
return try? row.get(Expression<UUID>(key.stringValue)) as? T
506
default:
507
- guard let JSONString = try? row.get(Expression<String?>(key.stringValue)) else {
508
- throw DecodingError.typeMismatch(type, DecodingError.Context(codingPath: codingPath,
509
- debugDescription: "an unsupported type was found"))
+ guard let JSONString = try row.get(Expression<String?>(key.stringValue)) else {
+ return nil
510
}
511
guard let data = JSONString.data(using: .utf8) else {
512
throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: codingPath,
0 commit comments