File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -436,10 +436,10 @@ impl AsyncPgConnection {
436
436
} ;
437
437
let ( fake_oid, fake_array_oid) = metadata_lookup. fake_oids ( index) ;
438
438
let [ real_oid, real_array_oid] = unwrap_oids ( & real_metadata) ;
439
- real_oids. extend ( [
439
+ real_oids. extend ( dbg ! ( [
440
440
( fake_oid, real_oid) ,
441
441
( fake_array_oid, real_array_oid) ,
442
- ] ) ;
442
+ ] ) ) ;
443
443
}
444
444
445
445
// Replace fake OIDs with real OIDs in `bind_collector.metadata`
@@ -452,7 +452,7 @@ impl AsyncPgConnection {
452
452
// If `oid` is not a key in `real_oids`, then `HasSqlType::metadata` returned it as a
453
453
// hardcoded value instead of being lied to by `PgAsyncMetadataLookup`. In this case,
454
454
// the existing value is already the real OID, so it's kept.
455
- . unwrap_or ( dbg ! ( oid) )
455
+ . unwrap_or_else ( || dbg ! ( oid) )
456
456
} ) ;
457
457
* m = PgTypeMetadata :: new ( oid, array_oid) ;
458
458
}
You can’t perform that action at this time.
0 commit comments