File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ fileprivate class SQLiteEncoder: Encoder {
201
201
}
202
202
203
203
func encode( _ value: Int64 , forKey key: Key ) throws {
204
- throw EncodingError . invalidValue ( value , EncodingError . Context ( codingPath : self . codingPath , debugDescription : " encoding an Int64 is not supported " ) )
204
+ self . encoder . setters . append ( Expression ( key . stringValue ) <- value )
205
205
}
206
206
207
207
func encode( _ value: UInt , forKey key: Key ) throws {
@@ -298,7 +298,7 @@ fileprivate class SQLiteDecoder : Decoder {
298
298
}
299
299
300
300
func decode( _ type: Int64 . Type , forKey key: Key ) throws -> Int64 {
301
- throw DecodingError . typeMismatch ( type , DecodingError . Context ( codingPath : self . codingPath , debugDescription : " decoding an UInt64 is not supported " ) )
301
+ return try self . row . get ( Expression ( key . stringValue ) )
302
302
}
303
303
304
304
func decode( _ type: UInt . Type , forKey key: Key ) throws -> UInt {
You can’t perform that action at this time.
0 commit comments