sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.52k stars 446 forks source link

add #[track_caller] to the Row::get() functions #1104

Closed njaard closed 9 months ago

njaard commented 9 months ago

This small quality-of-life improvement changes these errors:

thread '' panicked at /../.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-postgres-0.7.10/src/row.rs:151:25: error retrieving column 0: error deserializing column 0: a Postgres value was NULL

to:

thread '' panicked at my-program.rs:100:25: error retrieving column 0: error deserializing column 0: a Postgres value was NULL

sfackler commented 9 months ago

Thanks!