@@ -379,9 +379,9 @@ impl AsyncPgConnection {
379
379
380
380
let mut metadata_lookup = PgAsyncMetadataLookup :: new ( & bind_collector_0. metadata ) ;
381
381
let collect_bind_result = query. collect_binds ( & mut bind_collector, & mut metadata_lookup, & Pg ) ;
382
- dbg ! ( & bind_collector. binds) ;
383
- dbg ! ( & bind_collector_0. binds) ;
384
- dbg ! ( & bind_collector_1. binds) ;
382
+ // dbg!(&bind_collector.binds);
383
+ // dbg!(&bind_collector_0.binds);
384
+ // dbg!(&bind_collector_1.binds);
385
385
386
386
let fake_oid_locations = std:: iter:: zip ( bind_collector_0. binds , bind_collector_1. binds )
387
387
. enumerate ( )
@@ -392,7 +392,7 @@ impl AsyncPgConnection {
392
392
} )
393
393
// Avoid storing the bind collectors in the returned Future
394
394
. collect :: < Vec < _ > > ( ) ;
395
- dbg ! ( & fake_oid_locations) ;
395
+ // dbg!(&fake_oid_locations);
396
396
397
397
let raw_connection = self . conn . clone ( ) ;
398
398
let stmt_cache = self . stmt_cache . clone ( ) ;
@@ -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 ( oid)
455
+ . unwrap_or ( dbg ! ( oid) )
456
456
} ) ;
457
457
* m = PgTypeMetadata :: new ( oid, array_oid) ;
458
458
}
@@ -533,6 +533,7 @@ impl PgMetadataLookup for PgAsyncMetadataLookup {
533
533
let index = self . unresolved_types . len ( ) ;
534
534
self . unresolved_types
535
535
. push ( ( schema. map ( ToOwned :: to_owned) , type_name. to_owned ( ) ) ) ;
536
+ dbg ! ( index, self . fake_oids( index) ) ;
536
537
PgTypeMetadata :: from_result ( Ok ( self . fake_oids ( index) ) )
537
538
}
538
539
}
0 commit comments