diff --git a/server/src/proto_wrapper.rs b/server/src/proto_wrapper.rs index c03f27f..dfcb7ed 100644 --- a/server/src/proto_wrapper.rs +++ b/server/src/proto_wrapper.rs @@ -113,7 +113,8 @@ fn column_to_description(schema: &TableSchema, column: Column) -> anyhow::Result }) } -/// Stable random number based on string +/// Hashes the table name into single i32 used as a substitute for the table OID +/// in the PostgreSQL protocol. fn table_name_to_oid(table_name: &str) -> i32 { let mut rng: Pcg64 = Seeder::from(table_name).make_rng(); rng.gen::()