@@ -180,14 +180,11 @@ fn postgres_bytes_to_py(
180180 }
181181 Ok ( py. None ( ) )
182182 }
183- Type :: OID => Ok (
184- composite_field_postgres_to_py :: < Option < i32 > > ( type_, buf, is_simple) ?
185- . into_py_any ( py) ?,
186- ) ,
187- Type :: NAME => Ok (
188- composite_field_postgres_to_py :: < Option < String > > ( type_, buf, is_simple) ?
189- . into_py_any ( py) ?,
190- ) ,
183+ // Convert Integer into i32, then into int
184+ Type :: OID | Type :: INT4 => Ok ( composite_field_postgres_to_py :: < Option < i32 > > (
185+ type_, buf, is_simple,
186+ ) ?
187+ . into_py_any ( py) ?) ,
191188 // // ---------- String Types ----------
192189 // // Convert TEXT and VARCHAR type into String, then into str
193190 Type :: TEXT | Type :: VARCHAR | Type :: XML => Ok ( composite_field_postgres_to_py :: <
@@ -206,11 +203,6 @@ fn postgres_bytes_to_py(
206203 composite_field_postgres_to_py :: < Option < i16 > > ( type_, buf, is_simple) ?
207204 . into_py_any ( py) ?,
208205 ) ,
209- // Convert Integer into i32, then into int
210- Type :: INT4 => Ok (
211- composite_field_postgres_to_py :: < Option < i32 > > ( type_, buf, is_simple) ?
212- . into_py_any ( py) ?,
213- ) ,
214206 // Convert BigInt into i64, then into int
215207 Type :: INT8 | Type :: MONEY => Ok ( composite_field_postgres_to_py :: < Option < i64 > > (
216208 type_, buf, is_simple,
@@ -363,7 +355,8 @@ fn postgres_bytes_to_py(
363355 composite_field_postgres_to_py :: < Option < Array < bool > > > ( type_, buf, is_simple) ?,
364356 )
365357 . into_py_any ( py) ?) ,
366- Type :: OID_ARRAY => Ok ( postgres_array_to_py (
358+ // Convert ARRAY of Integer into Vec<i32>, then into list[int]
359+ Type :: OID_ARRAY | Type :: INT4_ARRAY => Ok ( postgres_array_to_py (
367360 py,
368361 composite_field_postgres_to_py :: < Option < Array < i32 > > > ( type_, buf, is_simple) ?,
369362 )
@@ -381,12 +374,6 @@ fn postgres_bytes_to_py(
381374 composite_field_postgres_to_py :: < Option < Array < i16 > > > ( type_, buf, is_simple) ?,
382375 )
383376 . into_py_any ( py) ?) ,
384- // Convert ARRAY of Integer into Vec<i32>, then into list[int]
385- Type :: INT4_ARRAY => Ok ( postgres_array_to_py (
386- py,
387- composite_field_postgres_to_py :: < Option < Array < i32 > > > ( type_, buf, is_simple) ?,
388- )
389- . into_py_any ( py) ?) ,
390377 // Convert ARRAY of BigInt into Vec<i64>, then into list[int]
391378 Type :: INT8_ARRAY | Type :: MONEY_ARRAY => Ok ( postgres_array_to_py (
392379 py,
0 commit comments