Skip to content

Commit 7e94189

Browse files
authored
Update mod.rs
1 parent d9338b6 commit 7e94189

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/pg/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ impl AsyncPgConnection {
379379

380380
let mut metadata_lookup = PgAsyncMetadataLookup::new(&bind_collector_0.metadata);
381381
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);
385385

386386
let fake_oid_locations = std::iter::zip(bind_collector_0.binds, bind_collector_1.binds)
387387
.enumerate()
@@ -392,7 +392,7 @@ impl AsyncPgConnection {
392392
})
393393
// Avoid storing the bind collectors in the returned Future
394394
.collect::<Vec<_>>();
395-
dbg!(&fake_oid_locations);
395+
//dbg!(&fake_oid_locations);
396396

397397
let raw_connection = self.conn.clone();
398398
let stmt_cache = self.stmt_cache.clone();
@@ -452,7 +452,7 @@ impl AsyncPgConnection {
452452
// If `oid` is not a key in `real_oids`, then `HasSqlType::metadata` returned it as a
453453
// hardcoded value instead of being lied to by `PgAsyncMetadataLookup`. In this case,
454454
// the existing value is already the real OID, so it's kept.
455-
.unwrap_or(oid)
455+
.unwrap_or(dbg!(oid))
456456
});
457457
*m = PgTypeMetadata::new(oid, array_oid);
458458
}
@@ -533,6 +533,7 @@ impl PgMetadataLookup for PgAsyncMetadataLookup {
533533
let index = self.unresolved_types.len();
534534
self.unresolved_types
535535
.push((schema.map(ToOwned::to_owned), type_name.to_owned()));
536+
dbg!(index, self.fake_oids(index));
536537
PgTypeMetadata::from_result(Ok(self.fake_oids(index)))
537538
}
538539
}

0 commit comments

Comments
 (0)