@@ -43,6 +43,12 @@ final class _PostgreSQLMessageDecoder: Decoder, SingleValueDecodingContainer {
4343 VERBOSE ( " _PostgreSQLMessageDecoder.decode(_: \( type) ) " )
4444 return try data. requireReadInteger ( )
4545 }
46+
47+ /// See SingleValueDecodingContainer.decode
48+ func decode( _ type: UInt32 . Type ) throws -> UInt32 {
49+ VERBOSE ( " _PostgreSQLMessageDecoder.decode(_: \( type) ) " )
50+ return try data. requireReadInteger ( )
51+ }
4652
4753 /// See SingleValueDecodingContainer.decode
4854 func decode( _ type: String . Type ) throws -> String {
@@ -98,7 +104,6 @@ final class _PostgreSQLMessageDecoder: Decoder, SingleValueDecodingContainer {
98104 func decode( _ type: Int64 . Type ) throws -> Int64 { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
99105 func decode( _ type: UInt . Type ) throws -> UInt { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
100106 func decode( _ type: UInt16 . Type ) throws -> UInt16 { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
101- func decode( _ type: UInt32 . Type ) throws -> UInt32 { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
102107 func decode( _ type: UInt64 . Type ) throws -> UInt64 { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
103108 func decode( _ type: Float . Type ) throws -> Float { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
104109 func decode( _ type: Double . Type ) throws -> Double { throw PostgreSQLError ( identifier: " decoder " , reason: " Unsupported decode type: \( type) " , source: . capture( ) ) }
0 commit comments